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 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. cmake_minimum_required(VERSION 3.1.0)
  2. project(lfr_image_processing VERSION 0.1.0)
  3. set (CMAKE_CXX_STANDARD 20)
  4. include(CTest)
  5. enable_testing()
  6. set(THREADS_PREFER_PTHREAD_FLAG ON)
  7. find_package( OpenCV REQUIRED )
  8. find_package(Threads REQUIRED)
  9. include_directories( ${OpenCV_INCLUDE_DIRS}
  10. ${CMAKE_CURRENT_SOURCE_DIR}/Input
  11. ${CMAKE_CURRENT_SOURCE_DIR}/Processing
  12. ${CMAKE_CURRENT_SOURCE_DIR}/ControlModule
  13. ${CMAKE_CURRENT_SOURCE_DIR}/Interpreter
  14. ${CMAKE_CURRENT_SOURCE_DIR}/IntersectionHandler
  15. ${CMAKE_CURRENT_SOURCE_DIR}/Utils
  16. )
  17. link_directories( ${Input_SOURCE_DIRS}
  18. ${Processing_SOURCE_DIRS}
  19. ${ControlModule_SOURCE_DIRS}
  20. ${Interpreter_SOURCE_DIRS}
  21. ${IntersectionHandler_SOURCE_DIRS}
  22. ${Utils_SOURCE_DIRS}
  23. )
  24. add_subdirectory(Input)
  25. add_subdirectory(Processing)
  26. add_subdirectory(ControlModule)
  27. add_subdirectory(Interpreter)
  28. add_subdirectory(IntersectionHandler)
  29. add_subdirectory(Utils)
  30. add_subdirectory(Spielwiese)
  31. target_include_directories(Input PRIVATE .)
  32. target_include_directories(Processing PRIVATE .)
  33. target_include_directories(ControlModule PRIVATE .)
  34. target_include_directories(Interpreter PRIVATE .)
  35. target_include_directories(IntersectionHandler PRIVATE .)
  36. target_include_directories(Utils PRIVATE .)
  37. add_executable(lfr_image_processing lfr.cpp autonomous_mode_main.cpp)
  38. target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler Utils Threads::Threads)
  39. set(CPACK_PROJECT_NAME ${PROJECT_NAME})
  40. set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
  41. include(CPack)