forked from lfiaschi/simple-STORM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (39 loc) · 1.08 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
project(simpleSTORM)
cmake_minimum_required(VERSION 2.8)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
FIND_PACKAGE( HDF5 )
FIND_PACKAGE( OpenMP )
FIND_PACKAGE( RudeConfig REQUIRED)
FIND_PACKAGE( Vigra 1.9.0 REQUIRED )
FIND_PACKAGE( Boost REQUIRED)
IF(HDF5_FOUND)
ADD_DEFINITIONS(-DHDF5_FOUND)
ELSE(HDF5_FOUND)
message(WARNING "Compiling without HDF5. No hdf5-input will be possible")
ENDIF(HDF5_FOUND)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/storm
${Vigra_INCLUDE_DIRS}
${FFTW_INCLUDE_DIR}
${R_INCLUDE_DIR}
${RUDECONFIG_INCLUDE_DIR}
${Boost_INCLUDE_DIR}
)
IF (NOT MSVC)
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -std=c++11"
)
ENDIF()
set(BIN_INSTALL_DIR bin)
if (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set(CMAKE_LIBRARY_PATH
${CMAKE_LIBRARY_PATH}
${R_SHARED_LIB_DIR}
${FFTW_LIBRARY_DIR}
${FFTWF_LIBRARY_DIR}
)
add_subdirectory(storm)
add_subdirectory(tests)
add_subdirectory(gui)