forked from rraju1/cmake-buildscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SanderConfig.cmake
59 lines (42 loc) · 1.59 KB
/
SanderConfig.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
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
# Configures all of the variants of SANDER
# NOTE: must be included after 3rdPartyTools.cmake
option(BUILD_SANDER_LES "Build another version of sander with LES support compiled in" TRUE)
option(BUILD_SANDER_API "Build the Sander API" TRUE)
# -------------------------------------------------------------
# APBS
option(BUILD_SANDER_APBS "Build another version of sander that uses the APBS (Automatic Poisson-Boltzmann Solver) library" ${apbs_ENABLED})
if(BUILD_SANDER_APBS AND apbs_DISABLED)
message(FATAL_ERROR "You enabled sander's APBS support, but APBS was not found.")
endif()
# -------------------------------------------------------------
# PUPIL
option(BUILD_SANDER_PUPIL "Build another version of sander with PUPIL (Program for User Package Interfacing and Linking) support" ${pupil_ENABLED})
if(BUILD_SANDER_PUPIL AND pupil_DISABLED)
message(FATAL_ERROR "You enabled sander's PUPIL support, but PUPIL was not found.")
endif()
#---------------------------------------------------
# make the SANDER report for the build report
set(SANDER_VARIANTS "")
list(APPEND SANDER_VARIANTS normal)
if(BUILD_SANDER_LES)
list(APPEND SANDER_VARIANTS LES)
endif()
if(BUILD_SANDER_APBS)
list(APPEND SANDER_VARIANTS APBS)
endif()
if(BUILD_SANDER_APBS)
list(APPEND SANDER_VARIANTS PUPIL)
endif()
if(BUILD_SANDER_API)
list(APPEND SANDER_VARIANTS API)
if(BUILD_SANDER_LES)
list(APPEND SANDER_VARIANTS LES-API)
endif()
endif()
if(MPI)
list(APPEND SANDER_VARIANTS MPI)
if(BUILD_SANDER_LES)
list(APPEND SANDER_VARIANTS LES-MPI)
endif()
endif()
list_to_space_separated(SANDER_VARIANTS_STRING ${SANDER_VARIANTS})