-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
30 lines (17 loc) · 790 Bytes
/
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
#The CMake Minimum version that is required.
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
#Detect Build Type if Debug appears in CMAKE_BINARY_DIR path
STRING(REGEX MATCH ".*(Debug|debug).*" DEBUG_MATCH ${CMAKE_BINARY_DIR} )
if(DEBUG_MATCH)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "The build type for makefile based generators")
SET(PROJECTNAMEPREFIX Debug)
ELSE()
set(CMAKE_BUILD_TYPE Release CACHE STRING "The build type for makefile based generators")
SET(PROJECTNAMEPREFIX Release)
ENDIF()
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/;${CMAKE_MODULE_PATH}")
message(STATUS "Module path is now set to: " ${CMAKE_MODULE_PATH} )
find_package(FFTW REQUIRED)
find_package(HDF5 COMPONENTS CXX HL REQUIRED)
SET(CMAKE_DEBUG_POSTFIX "_d")
ADD_SUBDIRECTORY(acciv)