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.4KB

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. include_directories( ${OpenCV_INCLUDE_DIRS}
  9. ${CMAKE_CURRENT_SOURCE_DIR}/Input
  10. ${CMAKE_CURRENT_SOURCE_DIR}/Processing
  11. ${CMAKE_CURRENT_SOURCE_DIR}/ControlModule
  12. ${CMAKE_CURRENT_SOURCE_DIR}/Interpreter
  13. ${CMAKE_CURRENT_SOURCE_DIR}/IntersectionHandler
  14. )
  15. link_directories( ${Input_SOURCE_DIRS}
  16. ${Processing_SOURCE_DIRS}
  17. ${ControlModule_SOURCE_DIRS}
  18. ${Interpreter_SOURCE_DIRS}
  19. ${IntersectionHandler_SOURCE_DIRS}
  20. )
  21. add_subdirectory(Input)
  22. add_subdirectory(Processing)
  23. add_subdirectory(ControlModule)
  24. add_subdirectory(Interpreter)
  25. add_subdirectory(IntersectionHandler)
  26. target_include_directories(Input PRIVATE .)
  27. target_include_directories(Processing PRIVATE .)
  28. target_include_directories(ControlModule PRIVATE .)
  29. target_include_directories(Interpreter PRIVATE .)
  30. target_include_directories(IntersectionHandler PRIVATE .)
  31. add_executable(lfr_image_processing lfr.cpp autonomous_mode_main.cpp)
  32. target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler Threads::Threads)
  33. set(CPACK_PROJECT_NAME ${PROJECT_NAME})
  34. set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
  35. include(CPack)