Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 602B

12345678910111213141516171819202122
  1. cmake_minimum_required(VERSION 3.1.0)
  2. project(lfr_uart VERSION 0.1.0)
  3. include(CTest)
  4. enable_testing()
  5. set(THREADS_PREFER_PTHREAD_FLAG ON)
  6. find_package(Threads REQUIRED)
  7. add_executable(lfr_uart uart_communication.cpp uart_communication_main.cpp)
  8. add_library(lfr_uart_lib uart_communication.cpp)
  9. target_link_libraries( lfr_uart Threads::Threads)
  10. target_link_libraries( lfr_uart_lib Threads::Threads)
  11. target_include_directories(lfr_uart PUBLIC .)
  12. target_include_directories(lfr_uart_lib PUBLIC .)
  13. set(CPACK_PROJECT_NAME ${PROJECT_NAME})
  14. set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
  15. include(CPack)