-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (35 loc) · 1.76 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
##---------------------------------------------------------------------------##
## SFC/CMakeLists.txt
## Stuart R. Slattery
##---------------------------------------------------------------------------##
## TriBITS package file for the SFC package
##---------------------------------------------------------------------------##
INCLUDE(TribitsPackageMacros)
INCLUDE(TribitsAddOptionAndDefine)
##---------------------------------------------------------------------------##
## A) Define the package
##---------------------------------------------------------------------------##
TRIBITS_PACKAGE(SFC)
##---------------------------------------------------------------------------##
## B) Set up package-specific options
##---------------------------------------------------------------------------##
# Design-by-Contract
TRIBITS_ADD_OPTION_AND_DEFINE(
${PACKAGE_NAME}_ENABLE_DBC
HAVE_SFC_DBC
"Enable Design-by-Contract checks. WARNING: use for debug checking but disable for production runs as it incurs a significant overhead."
${${PROJECT_NAME}_ENABLE_DEBUG}
)
TRIBITS_ADD_DEBUG_OPTION()
TRIBITS_ADD_SHOW_DEPRECATED_WARNINGS_OPTION()
##---------------------------------------------------------------------------##
## C) Add library, test, and examples.
##---------------------------------------------------------------------------##
ADD_SUBDIRECTORY(core)
##---------------------------------------------------------------------------##
## D) Do standard postprocessing
##---------------------------------------------------------------------------##
TRIBITS_PACKAGE_POSTPROCESS()
##---------------------------------------------------------------------------##
## end of SFC/CMakeLists.txt
##---------------------------------------------------------------------------##