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

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