This repository was archived by the owner on Nov 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
71 lines (54 loc) · 1.33 KB
/
CMakeLists.txt
File metadata and controls
71 lines (54 loc) · 1.33 KB
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
#
# A) Define the package
#
TRIBITS_PACKAGE(Pliris)
#
# B) Set up package-specific options
#
TRIBITS_ADD_SHOW_DEPRECATED_WARNINGS_OPTION()
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_ZCPLX
ZCPLX
"Enable double precision complex functionality."
OFF NONCACHE)
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_SCPLX
SCPLX
"Enable single precision complex functionality."
OFF NONCACHE)
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_SREAL
SREAL
"Set reals to single precision."
OFF NONCACHE)
#
# C) Add the libraries, tests, and examples
#
#If no options are specified set DREAL as the default
IF(NOT ${PACKAGE_NAME}_ENABLE_ZCPLX AND
NOT ${PACKAGE_NAME}_ENABLE_SCPLX AND
NOT ${PACKAGE_NAME}_ENABLE_SREAL
)
SET(${PACKAGE_NAME}_ENABLE_DREAL_DEFAULT ON)
ELSE()
SET(${PACKAGE_NAME}_ENABLE_DREAL_DEFAULT OFF)
ENDIF()
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_DREAL
DREAL
"Set reals to double precision."
${${PACKAGE_NAME}_ENABLE_DREAL_DEFAULT} NONCACHE )
ADD_SUBDIRECTORY(src)
TRIBITS_ADD_TEST_DIRECTORIES(test)
#TRIBITS_ADD_EXAMPLE_DIRECTORIES(example)
#
# Exclude files for source package.
#
TRIBITS_EXCLUDE_FILES(
doc/matrix_.*.gif
src/Make..*
src/clean_code.h
src/init..*
src/malloc.c
src/my_srand48.c
)
#
# D) Do standard postprocessing
#
TRIBITS_PACKAGE_POSTPROCESS()