forked from dysonltd-zz/gts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (34 loc) · 1.05 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
# ----------------------------------------------------------------------------
# Top Level CMakeLists.txt
#
# Steps:
# 1. $ mkdir build
# 2. $ cd build
# 3.
#
# Unix:
# $ cmake -DOpenCV_ROOT_DIR="<path-to-opencv>" ../
#
# Windows:
# $ cmake.exe -G"MinGW Makefiles" -DOpenCV_ROOT_DIR="<path-to-opencv>" ..
# or
# $ cmake.exe -G"NMake Makefiles" -DOpenCV_ROOT_DIR="<path-to-opencv>" ..
#
# Options:
# > Compile help -DGTS_HELP=ON (ON by default)
# > Compile tests -DGTS_TESTS=ON (OFF by default)
#
# ----------------------------------------------------------------------------
project("GTS")
# Options
option(GTS_HELP "Build Help" ON)
option(GTS_TESTS "Build all GTS tests." OFF)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
set(CMAKE_INCLUDE_DIRECTORIES_BEFORE ON)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "${PROJECT_SOURCE_DIR}/build/app/lib/log4qt")
add_subdirectory("app")
if(GTS_HELP)
add_subdirectory("help")
endif()