forked from QSTEM/QSTEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (32 loc) · 1.12 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
cmake_minimum_required(VERSION 2.8)
set(CMAKE_USER_MAKE_RULES_OVERRIDE
${CMAKE_SOURCE_DIR}/cmake/Modules/c_flag_overrides.cmake)
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
${CMAKE_SOURCE_DIR}/cmake/Modules/cxx_flag_overrides.cmake)
project(qstem)
set (stem3_VERSION_MAJOR 2)
set (stem3_VERSION_MINOR 22)
set (EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(fftw3 REQUIRED)
set (M_LIB "")
if (UNIX)
set (M_LIB "m")
endif(UNIX)
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Debug")
set(CMAKE_BUILD_TYPE "Debug")
endif(NOT CMAKE_BUILD_TYPE)
OPTION( OPENMP "Set to ON to enable parallel execution using OpenMP" ON )
if(OPENMP)
find_package(OpenMP REQUIRED)
endif(OPENMP)
#set(CMAKE_C_FLAGS_DEBUG "-ggdb -static")
#set(CMAKE_CXX_FLAGS_DEBUG "-ggdb -static")
#set(CMAKE_C_FLAGS_RELEASE "-O3 -static -Wall -march=native")
#set(CMAKE_CXX_FLAGS_RELEASE "-O3 -static -Wall -march=native")
# adds the libraries
add_subdirectory(libs)
add_subdirectory(stem3)
add_subdirectory(gbmaker)
add_subdirectory(qscRg12)