Line-Following-Robot/CMakeLists.txt

28 lines
864 B
CMake

cmake_minimum_required(VERSION 3.0.0)
project(lfr_image_processing VERSION 0.1.0)
include(CTest)
enable_testing()
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Input )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Processing)
link_directories( ${Input_SOURCE_DIRS} )
link_directories( ${Processing_SOURCE_DIRS} )
add_subdirectory(Input)
add_subdirectory(Processing)
target_include_directories(Input PRIVATE .)
target_include_directories(Processing PRIVATE .)
add_executable(lfr_image_processing lfr.cpp)
target_link_libraries( lfr_image_processing ${OpenCV_LIBS})
target_link_libraries( lfr_image_processing Input )
target_link_libraries( lfr_image_processing Processing )
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)