-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
executable file
·48 lines (39 loc) · 1.45 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(cityblocks)
FIND_PATH(DYNAMINDDEV DynaMindDevCmake.txt
PATHS $ENV{DYNAMIND_DIR}/include
PATH_SUFFIXES dynamindcore/CMake)
IF(DYNAMIND_INCLUDE_DIR)
MESSAGE("Compiled from toolbox")
MESSAGE("DYNAMIND_INCLUDE_DIR ${DYNAMIND_INCLUDE_DIR}")
SET (DYNAMIND_CORE_LIBRARY dynamindcore)
SET (DYNAMIND_TOOLBOX_LIBRARY dynamindtoolbox)
MESSAGE("${DYNAMIND_CORE_LIBRARY}")
ELSE()
MESSAGE("Compiled from stand alone")
FIND_PATH(DYNAMINDDEV DynaMindDevCmake.txt
PATHS $ENV{DYNAMIND_DIR}/include
PATH_SUFFIXES dynamindcore/CMake)
IF(DYNAMINDDEV)
INCLUDE(${DYNAMINDDEV}/DynaMindDevCmake.txt)
ELSE()
MESSAGE(FATAL_ERROR "Could not find dynamind. Maybe not installed ?")
ENDIF()
ENDIF()
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES( ${DYNAMIND_INCLUDE_DIR})
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE(STATUS "Build Type = Debug")
ADD_DEFINITIONS(-DDEBUG)
ELSE()
MESSAGE(STATUS "Build Type = Release")
ENDIF()
IF(DYNAMIND_TOOLBOX_BUILD_DIR)
SET(LIBRARY_OUTPUT_PATH ${DYNAMIND_TOOLBOX_BUILD_DIR}/Modules)
SET(EXECUTABLE_OUTPUT_PATH ${DYNAMIND_TOOLBOX_BUILD_DIR}/Modules)
ELSE()
SET(LIBRARY_OUTPUT_PATH ${cityblocks_BINARY_DIR})
SET(EXECUTABLE_OUTPUT_PATH ${cityblocks_BINARY_DIR})
ENDIF()
ADD_SUBDIRECTORY(src)