2022-10-26 22:53:34 +02:00
|
|
|
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} )
|
2022-10-30 20:01:47 +01:00
|
|
|
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Input )
|
2022-11-01 14:18:02 +01:00
|
|
|
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Processing)
|
2022-10-30 20:01:47 +01:00
|
|
|
link_directories( ${Input_SOURCE_DIRS} )
|
2022-11-01 14:18:02 +01:00
|
|
|
link_directories( ${Processing_SOURCE_DIRS} )
|
2022-10-30 20:01:47 +01:00
|
|
|
|
|
|
|
add_subdirectory(Input)
|
2022-11-01 14:18:02 +01:00
|
|
|
add_subdirectory(Processing)
|
2022-10-30 20:01:47 +01:00
|
|
|
target_include_directories(Input PRIVATE .)
|
2022-11-01 14:18:02 +01:00
|
|
|
target_include_directories(Processing PRIVATE .)
|
2022-10-26 22:53:34 +02:00
|
|
|
|
2022-11-01 14:18:02 +01:00
|
|
|
add_executable(lfr_image_processing lfr.cpp)
|
2022-10-30 20:01:47 +01:00
|
|
|
|
|
|
|
target_link_libraries( lfr_image_processing ${OpenCV_LIBS})
|
|
|
|
target_link_libraries( lfr_image_processing Input )
|
2022-11-01 14:18:02 +01:00
|
|
|
target_link_libraries( lfr_image_processing Processing )
|
2022-10-30 20:01:47 +01:00
|
|
|
|
2022-10-26 22:53:34 +02:00
|
|
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|
|
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
|
|
|
include(CPack)
|