-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
151 lines (115 loc) · 3.64 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# dummy change to test secondary git repo
# another dummy change
#
# A) Define the package
#
TRIBITS_PACKAGE(Sundance DISABLE_CIRCULAR_REF_DETECTION_FAILURE)
#
# B) Set up package-specific options
#
#IF (NOT (${Trilinos_DATA_DIR} STREQUAL "NOTFOUND"))
# SET( HAVE_TRILINOS_DATA ON)
#ENDIF()
SET (HAVE_TRILINOS_DATA OFF)
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_Python
HAVE_SUNDANCE_PYTHON
"Enable python functionality."
OFF )
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_MOOCHO
HAVE_SUNDANCE_MOOCHO
"Enable Sundance/Moocho."
ON )
IF(${PACKAGE_NAME}_ENABLE_Stokhos)
SET(HAVE_SUNDANCE_STOKHOS_DEFAULT ON)
ELSE()
SET(HAVE_SUNDANCE_STOKHOS_DEFAULT OFF)
ENDIF()
#Adding a define for when Stokhos is enabled.
#This replaces an option that was reusing an existing name.
SET(HAVE_SUNDANCE_STOKHOS ${HAVE_SUNDANCE_STOKHOS_DEFAULT})
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_BROKEN_CODE
HAVE_SUNDANCE_BROKEN_CODE
"Enable broken code. For expert developer use only."
OFF )
#Enable ExodusII reader in Sundance (via SEACAS package).
#Adding a define for when SEACASExodus is enabled.
#This replaces an option that was reusing an existing name.
SET(HAVE_SUNDANCE_EXODUS "${${PACKAGE_NAME}_ENABLE_SEACASExodus}")
TRIBITS_ADD_OPTION_AND_DEFINE(Sundance_ENABLE_EXTERNAL_CHACO
HAVE_SUNDANCE_CHACO
"Enable file-based chaco partitioning in Sundance (requires chaco executable in path)."
OFF )
# ========== Peano configuration ===============
IF(TPL_ENABLE_Peano)
#Adding a define for when the TPL Peano is enabled.
#This replaces an option that was reusing an existing name.
SET(HAVE_SUNDANCE_PEANO "${${PACKAGE_NAME}_ENABLE_Peano}")
INCLUDE_DIRECTORIES(${Peano_INCLUDE_DIRS})
IF (TPL_ENABLE_Peano_NO_2D)
TRIBITS_ADD_OPTION_AND_DEFINE(TPL_ENABLE_Peano_NO_2D
HAVE_SUNDANCE_PEANO_NO_2D
"Turn OFF Peano 2D"
ON )
ELSE()
# LINK_DIRECTORIES( ${Peano_LIBRARY_DIRS}/libpeano2D.a )
# PEANO_ADD_LIBRARY(peano2D)
ENDIF()
IF (TPL_ENABLE_Peano_NO_3D)
TRIBITS_ADD_OPTION_AND_DEFINE(TPL_ENABLE_Peano_NO_3D
HAVE_SUNDANCE_PEANO_NO_3D
"Turn OFF Peano 3D"
ON )
ELSE()
# LINK_DIRECTORIES( ${Peano_LIBRARY_DIRS}/libpeano3D.a )
# PEANO_ADD_LIBRARY(peano3D)
ENDIF()
ENDIF()
# ============ end of Peano configuration ================
IF(${Proj}_VERBOSE_CONFIGURE)
PRINT_VAR(HAVE_SUNDANCE_EXODUS)
PRINT_VAR(HAVE_SUNDANCE_PYTHON)
PRINT_VAR(HAVE_SUNDANCE_CHACO)
ENDIF()
#
# C) Add the libraries, tests, and examples
#
#MESSAGE("adding Playa")
ADD_SUBDIRECTORY(Playa)
#MESSAGE("adding src-utils")
ADD_SUBDIRECTORY(src-utils)
#MESSAGE("adding test-utils")
TRIBITS_ADD_TEST_DIRECTORIES(tests-utils)
#ADD_SUBDIRECTORY(src-solvers)
#TRIBITS_ADD_TEST_DIRECTORIES(tests-solvers)
#MESSAGE("adding src-interop")
ADD_SUBDIRECTORY(src-interop)
#MESSAGE("adding src-core")
ADD_SUBDIRECTORY(src-core)
#MESSAGE("adding tests-core")
TRIBITS_ADD_TEST_DIRECTORIES(tests-core)
#MESSAGE("adding src-std-mesh")
ADD_SUBDIRECTORY(src-std-mesh)
#MESSAGE("adding tests-std-mesh")
TRIBITS_ADD_TEST_DIRECTORIES(tests-std-mesh)
#MESSAGE("adding src-std-fwk")
ADD_SUBDIRECTORY(src-std-framework)
#MESSAGE("adding tests-std-fwk")
TRIBITS_ADD_TEST_DIRECTORIES(tests-std-framework)
#MESSAGE("adding src-pdeopt")
ADD_SUBDIRECTORY(src-pdeopt)
#MESSAGE("adding tests-pdeopt")
TRIBITS_ADD_TEST_DIRECTORIES(tests-pdeopt)
IF(Sundance_ENABLE_Python)
MESSAGE("adding python")
ADD_SUBDIRECTORY(python)
ENDIF()
#MESSAGE("adding ex-tut")
TRIBITS_ADD_TEST_DIRECTORIES(examples)
#
# Exclude files for source package.
#
TRIBITS_EXCLUDE_AUTOTOOLS_FILES()
#
# D) Do standard postprocessing
#
TRIBITS_PACKAGE_POSTPROCESS()