-
Notifications
You must be signed in to change notification settings - Fork 184
/
CMakeLists.txt
44 lines (29 loc) · 1.1 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
project (CMT)
cmake_minimum_required (VERSION 2.6)
option(BUILD_TRAX_CLIENT "Build the trax client." OFF)
find_package(OpenCV REQUIRED)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
endif()
add_definitions ("-Wall")
include_directories(${OpenCV_INCLUDE_DIRS})
if(WIN32)
add_executable (cmt common.cpp gui.cpp main.cpp
CMT.cpp Consensus.cpp Fusion.cpp Matcher.cpp Tracker.cpp
fastcluster/fastcluster.cpp getopt/getopt.cpp
)
else()
add_executable (cmt common.cpp gui.cpp main.cpp
CMT.cpp Consensus.cpp Fusion.cpp Matcher.cpp Tracker.cpp
fastcluster/fastcluster.cpp)
endif()
target_link_libraries(cmt ${OpenCV_LIBS})
if(BUILD_TRAX_CLIENT)
set(TRAX_DIR "" CACHE FILEPATH "Path to trax")
include_directories(${TRAX_DIR}/include)
add_executable (trax_client cmt common.cpp gui.cpp trax.cpp
CMT.cpp Consensus.cpp Fusion.cpp Matcher.cpp Tracker.cpp
fastcluster/fastcluster.cpp)
find_library(TRAX_LIBRARY NAMES trax HINTS "${TRAX_DIR}/lib")
target_link_libraries(trax_client ${OpenCV_LIBS} ${TRAX_LIBRARY})
endif()