forked from torrvision/spaint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (48 loc) · 1.95 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
56
57
58
59
60
61
62
#######################################
# Top-level CMakeLists.txt for spaint #
#######################################
cmake_minimum_required(VERSION 2.8)
PROJECT(spaint)
#############################
# Enable C++11 if requested #
#############################
INCLUDE(cmake/OfferC++11Support.cmake)
#################################
# Add additional compiler flags #
#################################
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-local-typedefs")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# If on Mac OS X 10.9 (Mavericks), disable the annoying deprecation warnings (e.g. for GLU).
IF(${CMAKE_SYSTEM} MATCHES "Darwin-13.")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
ENDIF()
#########################################
# Specify the default install directory #
#########################################
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/install CACHE PATH "" FORCE)
ENDIF()
##########################
# Specify subdirectories #
##########################
ADD_SUBDIRECTORY(modules)
OPTION(BUILD_APPS "Build the applications?" ON)
OPTION(BUILD_AUXILIARY_APPS "Build the auxiliary applications?" ON)
OPTION(BUILD_EVALUATION_MODULES "Build the evaluation modules?" ON)
OPTION(BUILD_GROVE "Build grove?" OFF)
OPTION(BUILD_GROVE_APPS "Build the applications associated with grove?" OFF)
OPTION(BUILD_INFERMOUS "Build infermous?" OFF)
OPTION(BUILD_RAFL_APPS "Build the applications associated with rafl?" OFF)
OPTION(BUILD_RELOCVIS "Build relocvis?" OFF)
OPTION(BUILD_SPAINT "Build spaint?" ON)
OPTION(BUILD_SPAINT_APPS "Build the applications associated with spaint?" ON)
OPTION(BUILD_SPAINTGUI_DEBUGHOOKS "Build the debug hooks in spaintgui?" OFF)
OPTION(BUILD_TESTS "Build the tests?" ON)
IF(BUILD_APPS)
ADD_SUBDIRECTORY(apps)
ENDIF(BUILD_APPS)
IF(BUILD_TESTS)
ENABLE_TESTING()
ADD_SUBDIRECTORY(tests)
ENDIF()