<commit_before>cmake_minimum_required(VERSION 2.8)
project(libmikrokopter)

set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_CXX_FLAGS "-pedantic -Wno-variadic-macros -Weffc++ -Wno-long-long")
# set(CMAKE_CXX_FLAGS "-Wno-variadic-macros -Weffc++ -Wno-long-long")
# set(CMAKE_CXX_FLAGS "-W -Wall -Wno-unused-parameter")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) 
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin) 
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) 

set(CPACK_GENERATOR "DEB")
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 1)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_PACKAGE_CONTACT "<NAME> <<EMAIL>>")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_SOURCE_DIR}/.git;${CMAKE_BINARY_DIR}/*")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/*")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/*")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/*")
include(CPack)

# add custom 'uninstall' for convenience, for undoing the effects of 'sudo make install'
configure_file(
    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
    IMMEDIATE @ONLY)
add_custom_target(uninstall
    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)

find_package(Boost REQUIRED COMPONENTS thread system)
include_directories(${BOOST_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/include)

add_library(mikrokopter
  src/common/time.cpp
  src/io/common.cpp
  src/io/console.cpp
  src/io/serial.cpp
  src/protocol/encoding.cpp
  src/protocol/protocol.cpp
  src/kopter.cpp)
target_link_libraries(mikrokopter ${Boost_LIBRARIES} pthread)

add_executable(test_protocol tools/test_protocol.cpp)
target_link_libraries(test_protocol mikrokopter)

add_executable(test_kopter tools/test_kopter.cpp)<commit_msg>fixed error in cmake file<commit_after>cmake_minimum_required(VERSION 2.8)
project(libmikrokopter)

set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_CXX_FLAGS "-pedantic -Wno-variadic-macros -Weffc++ -Wno-long-long")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) 
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin) 
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) 

set(CPACK_GENERATOR "DEB")
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 1)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_PACKAGE_CONTACT "<NAME> <<EMAIL>>")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_SOURCE_DIR}/.git;${CMAKE_BINARY_DIR}/*")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/*")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/*")
set(CPACK_SOURCE_IGNORE_FILES "${CPACK_SOURCE_IGNORE_FILES};${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/*")
include(CPack)

# add custom 'uninstall' for convenience, for undoing the effects of 'sudo make install'
configure_file(
    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
    IMMEDIATE @ONLY)
add_custom_target(uninstall
    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)

find_package(Boost REQUIRED COMPONENTS thread system)
include_directories(${BOOST_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/include)

add_library(mikrokopter
  src/common/time.cpp
  src/io/common.cpp
  src/io/console.cpp
  src/io/serial.cpp
  src/protocol/encoding.cpp
  src/protocol/protocol.cpp
  src/kopter.cpp)
target_link_libraries(mikrokopter ${Boost_LIBRARIES} pthread)

add_executable(test_kopter tools/test_kopter.cpp)
{'fraction_non_alphanumeric': 0.1134020618556701, 'fraction_numerical': 0.002577319587628866, 'mean_word_length': 9.432795698924732, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6666904', 'n_tokens_mistral': 1579, 'n_tokens_neox': 1486, 'n_words': 177}