-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproject.cmake
27 lines (25 loc) · 993 Bytes
/
project.cmake
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
macro(project_init)
set(_PROJECT_NAME "gbpCode")
endmacro()
macro(project_options)
#========= Set project-specific options ========
define_project_env_variable(USE_DOUBLE "Use double precision liberally" OFF ON OFF)
define_project_env_variable(SID_DEBUG "Enable SID debugging information" OFF ON OFF)
define_project_env_variable(FFTW_VERSION "Version of FFTW to use (2 or 3)" 2 2 3)
endmacro()
macro(project_dependencies)
#=========== Add 3rd-party libraries ===========
set_3rd_party_required("GSL")
set_3rd_party_optional("MPI" ON)
set_3rd_party_optional("MPI_IO" OFF)
set_3rd_party_optional("GD" ON)
if(FFTW_VERSION EQUAL 2)
set_3rd_party_optional("FFTW2" ON)
else()
set_3rd_party_optional("FFTW3" ON)
endif()
set_3rd_party_optional("CUDA" OFF)
set_3rd_party_optional("CFITSIO" ON)
set_3rd_party_optional("HDF5" ON)
set_3rd_party_requested("GBP_DOCS_BUILD" ON)
endmacro()