-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
55 lines (40 loc) · 1.21 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
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 2.8.11)
#if(POLICY CMP0020)
# cmake_policy(SET CMP0020 NEW)
#endif()
project(hybrid_marker_track)
list( APPEND CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
# set(CMAKE_LIBRARY_PATH "C:\\Program Files (x86)\\Windows Kits\\8.0\\Lib\\win8\\um\\x64")
# add_definitions(-DNOMINMAX)
set(CMAKE_BUILD_TYPE Debug)
set(OpenCV_STATIC OFF)
# Find OpenCV
find_package( OpenCV REQUIRED )
include_directories(${OpenCV_INCLUDE_DIRS})
# find_package(Qt5Widgets REQUIRED)
# set(CMAKE_AUTOMOC ON)
# IF(WIN32)
# set(PTHREADS_INCLUDE_DIR "" CACHE PATH "Pthreads Include Directory")
# set(PTHREADS_LIB_DIR "" CACHE PATH "Pthreads Lib Directory")
# ELSEIF(UNIX)
# find_package(Threads)
# ENDIF()
# Pattern tracker
add_subdirectory(src/libpatterntracker)
add_subdirectory(src/libchessdetector)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/src/libpatterntracker
${CMAKE_CURRENT_SOURCE_DIR}/src/libchessdetector
)
file(GLOB HEADER_FILES include/*.h)
file(GLOB CXX_FILES src/*.cpp)
add_executable(hybrid_marker_track
${CXX_FILES}
${HEADER_FILES}
)
target_link_libraries(hybrid_marker_track
${OpenCV_LIBS}
libpatterntracker
)