-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (24 loc) · 1.33 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
cmake_minimum_required(VERSION 2.8)
project(HybNav)
SET(CMAKE_BUILD_TYPE debug)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror=return-type -Wfatal-errors -DBOOST_SIGNALS_NO_DEPRECATION_WARNING")
SET(CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS}")
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
option(ENABLE_DISPLAY "Shows GUI (if disabled, sends images to videos)" ON)
option(ENABLE_SYROTEK "Tunes constants for real SyRoTeK arena" OFF)
configure_file(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_SOURCE_DIR}/config.h)
execute_process(COMMAND ${PROJECT_SOURCE_DIR}/gslwrap/generate WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/gslwrap)
find_package(OpenCV REQUIRED)
find_package(GSL REQUIRED)
find_package(Boost COMPONENTS system program_options REQUIRED)
INCLUDE(UsePlayerC++)
#include(FindPkgConfig)
#pkg_search_module(PLAYER REQUIRED playerc++)
message("found lib ${OpenCV_LIB_DIR}")
include_directories(${GSL_INCLUDE_DIR} ${PROJECT_SOURCE_DIR} ${PLAYER_INCLUDE_DIRS} ${OPENCV_INCLUDE_DIRS} ${PLAYERCPP_INCLUDE_DIRS})
file(GLOB HybNav_SRCS *.cpp death_handler.cc)
SET(SOURCES ${SOURCES} ${HybNav_SRCS})
link_directories(${PLAYERCPP_LIBRARY_DIRS})
add_executable(main ${SOURCES})
target_link_libraries(main gslwrap ${GSL_LIBRARIES} ${OpenCV_LIBS} ${Boost_LIBRARIES} ${PLAYER_LDFLAGS} ${PLAYERCPP_LINK_LIBS} dl)
add_subdirectory(gslwrap)