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

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