-
Notifications
You must be signed in to change notification settings - Fork 67
/
CMakeLists.txt
40 lines (26 loc) · 1.09 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
cmake_minimum_required(VERSION 2.8)
project(tracker)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O3")
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wextra -pedantic -Wno-long-long")
endif()
FIND_PACKAGE( OpenCV REQUIRED )
link_directories ( ${OpenCV_LIB_DIR} )
MESSAGE(STATUS "OpenCV_LIB_DIR: ${OpenCV_LIB_DIR}")
include_directories ( ${OpenCV_INCLUDE_DIRS} )
MESSAGE(STATUS "OpenCV_INCLUDE_DIRS: ${OpenCV_INCLUDE_DIRS}")
include_directories(${CMAKE_SOURCE_DIR}/src/)
add_subdirectory(src)
add_executable(asms_vot main_vot.cpp)
target_link_libraries(asms_vot ${OpenCV_LIBS} color)
add_executable(asms_demo main_demo.cpp )
target_link_libraries(asms_demo ${OpenCV_LIBS} color )
# Try to find TraX header and library ...
FIND_PACKAGE(trax REQUIRED COMPONENTS core opencv)
IF (trax_FOUND)
MESSAGE(STATUS "Trax protocol found: building asms_trax")
INCLUDE_DIRECTORIES(${TRAX_INCLUDE_DIRS})
LINK_DIRECTORIES(${TRAX_LIBRARY_DIRS})
add_executable(asms_trax main_trax.cpp)
target_link_libraries(asms_trax ${OpenCV_LIBS} color ${TRAX_LIBRARIES})
ENDIF()