forked from careylab/LocoMouse_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 823 Bytes
/
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
cmake_minimum_required (VERSION 3.1.0 FATAL_ERROR)
project (LocoMouse)
find_package (OpenCV REQUIRED)
# VERSION
set (LocoMouse_VERSION_MAJOR 1)
set (LocoMouse_VERSION_MINOR 0)
# Compiler options:
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_EXTENSIONS OFF)
# Configure file to get version number, optional flags, etc.
configure_file (
"${PROJECT_SOURCE_DIR}/LocoMouseConfig.h.in"
"${PROJECT_BINARY_DIR}/LocoMouseConfig.h"
)
add_subdirectory(Candidates)
add_subdirectory(MyMat)
add_subdirectory(match2nd)
add_subdirectory(LocoMouse_Core)
include_directories(${Candidates_INCLUDE_DIRS} ${MyMat_INCLUDE_DIRS} ${match2nd_INCLUDE_DIRS} ${LocoMouse_Core_INCLUDE_DIRS})
add_executable(LocoMouse main.cpp)
target_link_libraries(LocoMouse ${OpenCV_LIBS} MyMat match2nd Candidates LocoMouse_Core)