-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (41 loc) · 1.72 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.8)
project(mass-transit)
# modify to point to your OpenCV install as necessary
set(OpenCV_DIR "C:\\Users\\kaswanson_smm\\work\\lib\\cpp\\opencv\\out\\install\\x64-Debug")
find_package(OpenCV REQUIRED)
# files shared across the configuration tool and main program
set(COMMON_CPP
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/cargs.c
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/DeviceEnumerator.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/config.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/processing.cpp
)
set(COMMON_INCLUDE
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty
)
add_executable(
configure
${CMAKE_CURRENT_SOURCE_DIR}/src/conf/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/conf/common.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/conf/configureVideoDevice.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/conf/configureCalibration.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/conf/configureColors.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/conf/configureCircleParams.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/conf/configureProjection.cpp
${COMMON_CPP}
)
target_include_directories(configure PUBLIC ${OpenCV_INCLUDE_DIRS} ${COMMON_INCLUDE})
target_link_libraries(configure PUBLIC ${OpenCV_LIBS})
add_executable(
mt-input
${CMAKE_CURRENT_SOURCE_DIR}/src/main/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/main/color.cpp
${COMMON_CPP}
)
target_include_directories(mt-input PUBLIC ${OpenCV_INCLUDE_DIRS} ${COMMON_INCLUDE})
target_link_libraries(mt-input PUBLIC ${OpenCV_LIBS})
add_executable(dump-markers ${CMAKE_CURRENT_SOURCE_DIR}/src/dump-markers.cpp)
target_include_directories(dump-markers PUBLIC ${OpenCV_INCLUDE_DIRS})
target_link_libraries(dump-markers PUBLIC ${OpenCV_LIBS})
configure_file("config.xml.example" "config.xml")