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 864B

123456789101112131415161718192021222324252627
  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. include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Input )
  8. include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Processing)
  9. link_directories( ${Input_SOURCE_DIRS} )
  10. link_directories( ${Processing_SOURCE_DIRS} )
  11. add_subdirectory(Input)
  12. add_subdirectory(Processing)
  13. target_include_directories(Input PRIVATE .)
  14. target_include_directories(Processing PRIVATE .)
  15. add_executable(lfr_image_processing lfr.cpp)
  16. target_link_libraries( lfr_image_processing ${OpenCV_LIBS})
  17. target_link_libraries( lfr_image_processing Input )
  18. target_link_libraries( lfr_image_processing Processing )
  19. set(CPACK_PROJECT_NAME ${PROJECT_NAME})
  20. set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
  21. include(CPack)