-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·91 lines (67 loc) · 2.18 KB
/
CMakeLists.txt
File metadata and controls
executable file
·91 lines (67 loc) · 2.18 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# SimIL
# 2016 (c) VG-Lab / Universidad Rey Juan Carlos
# www.vg-lab.es
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
cmake_minimum_required( VERSION 3.1 FATAL_ERROR )
project( SimIL VERSION 0.4.0 )
set( SimIL_VERSION_ABI 2)
# Disable in source building
if( "${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}" )
message( FATAL "no in source building allowed." )
endif()
list( APPEND CMAKE_MODULE_PATH
${PROJECT_SOURCE_DIR}/CMake
${CMAKE_SOURCE_DIR}/CMake/common )
# Default build type is Debug
if( NOT CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE Debug )
endif( NOT CMAKE_BUILD_TYPE )
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
add_definitions( -DDEBUG )
endif( )
include(GitExternal)
set( CMAKECOMMONTEMPLATE_DESCRIPTION "SimIL - Simulation Input/Output Library" )
set( COMMON_PROJECT_DOMAIN es.vg-lab )
option( SIMIL_BRION_ENABLED
"Use Brion library to read BlueBrain data structures" OFF )
option( SIMIL_WITH_REST_API
"Enable REST API for data streaming input" OFF )
include( Common )
common_find_package( vmmlib REQUIRED SYSTEM )
if( SIMIL_BRION_ENABLED )
common_find_package( Brion REQUIRED )
endif()
common_find_package( HDF5 REQUIRED COMPONENTS C CXX SYSTEM )
common_find_package( Boost REQUIRED COMPONENTS system )
common_find_package( ZeroEQ )
common_find_package( Qt5Core SYSTEM )
common_find_package( Qt5Widgets SYSTEM )
list( APPEND SIMIL_DEPENDENT_LIBRARIES HDF5 vmmlib Boost )
if( BRION_FOUND )
list( APPEND SIMIL_DEPENDENT_LIBRARIES Brion )
endif()
if( ZEROEQ_FOUND )
list( APPEND SIMIL_DEPENDENT_LIBRARIES ZeroEQ )
common_find_package( Threads REQUIRED )
list( APPEND SIMIL_DEPENDENT_LIBRARIES Threads )
common_find_package( Lexis )
if( LEXIS_FOUND )
list( APPEND SIMIL_DEPENDENT_LIBRARIES Lexis )
endif( )
common_find_package( gmrvlex )
if( GMRVLEX_FOUND )
list( APPEND SIMIL_DEPENDENT_LIBRARIES gmrvlex )
endif( )
endif( )
common_find_package_post( )
add_subdirectory( simil )
if( QT5CORE_FOUND )
add_subdirectory( qsimil )
endif()
add_subdirectory( examples )
add_subdirectory( exporters )
include( CPackConfig )
include( DoxygenRule )