-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
78 lines (70 loc) · 3.65 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
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
# This file is autogenerated by Autocmake v1.0.0 http://autocmake.org
# Copyright (c) 2015-2021 by Radovan Bast, Roberto Di Remigio, Jonas Juselius, and contributors.
# set minimum cmake version
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
# project name
project(HANDE LANGUAGES Fortran C)
# do not rebuild if rules (compiler flags) change
set(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
# if CMAKE_BUILD_TYPE undefined, we set it to Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
# Options handling utilities
include(CMakeDependentOption)
# Macro for printing an option in a consistent manner
# Written by Lori A. Burns (@loriab) and Ryan M. Richard (@ryanmrichard)
# Syntax: print_option(<option to print> <was specified>)
macro(print_option variable default)
if(NOT DEFINED ${variable} OR "${${variable}}" STREQUAL "")
message(STATUS "Setting (unspecified) option ${variable}: ${default}")
else()
message(STATUS "Setting option ${variable}: ${${variable}}")
endif()
endmacro()
# Wraps an option with default ON/OFF. Adds nice messaging to option()
# Written by Lori A. Burns (@loriab) and Ryan M. Richard (@ryanmrichard)
# Syntax: option_with_print(<option name> <description> <default value>)
macro(option_with_print variable msge default)
print_option(${variable} ${default})
option(${variable} ${msge} ${default})
endmacro()
# Wraps an option with a default other than ON/OFF and prints it
# Written by Lori A. Burns (@loriab) and Ryan M. Richard (@ryanmrichard)
# NOTE: Can't combine with above b/c CMake handles ON/OFF options specially
# NOTE2: CMake variables are always defined so need to further check for if
# they are the NULL string. This is also why we need the force
# Syntax: option_with_default(<option name> <description> <default value>)
macro(option_with_default variable msge default)
print_option(${variable} "${default}")
if(NOT DEFINED ${variable} OR "${${variable}}" STREQUAL "")
set(${variable} "${default}" CACHE STRING ${msge} FORCE)
endif()
endmacro()
# included cmake modules
include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_fc.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_cc.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/compilers/Fortran_C.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/compilers/CFlags.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/compilers/FortranFlags.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_safeguards.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_default_build_paths.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_python_interpreter.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_definitions.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/lua.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/mpi.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/omp.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/math_libs.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/explicit_libs.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/dsfmt.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/detsize.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/popsize.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/hande_exe_name.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/hdf5.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/uuid.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/single_precision.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/backtrace.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/popcnt.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/print_info.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/custom/lib.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/downloaded/autocmake_src.cmake)