forked from NREL/EnergyPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
402 lines (350 loc) · 18.4 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
# Use ccache if available, has to be before "project()"
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
# Support both Unix Makefiles and Ninja
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()
Project(EnergyPlus)
cmake_minimum_required(VERSION 3.5.1)
if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_GREATER "3.0")
CMAKE_POLICY(SET CMP0054 NEW) # CMake 3.1 added this policy
endif()
cmake_policy(SET CMP0012 NEW) # if() recognizes boolean constants
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} )
set( CMAKE_POSITION_INDEPENDENT_CODE ON )
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
include(cmake/Version.cmake)
set( OPENGL_REQUIRED ON CACHE BOOL "Require OpenGL in order to build" )
if(OPENGL_REQUIRED)
# On Linux specifically, OpenGL is complaining about being able to find OpenGL using both the
# exported module target or the library variables. If it has to choose, and doesn't have a user-preference,
# a warning is shown on every configure step. This next line just sets the preference so the warning won't show up.
# See this for more info: https://cmake.org/cmake/help/v3.10/module/FindOpenGL.html#linux-specific
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL)
if(NOT OPENGL_FOUND)
set(CMAKE_VERSION_BUILD "${CMAKE_VERSION_BUILD} (No OpenGL)" CACHE STRING "Build number" FORCE) # git sha
message(WARNING "OpenGL libraries were not found. EnergyPlus will be compiled without GPU acceleration capabilities.")
endif()
else()
set( OPENGL_FOUND FALSE )
endif()
option( BUILD_PACKAGE "Build package" OFF )
option( BUILD_TESTING "Build testing targets" OFF )
option( BUILD_FORTRAN "Build Fortran stuff" OFF )
option( USE_PSYCHROMETRICS_CACHING "Use psychrometrics cashing routines" ON )
option( USE_GLYCOL_CACHING "Use glycol cashing routines" ON )
option( USE_PSYCH_STATS "Compute psychrometric stats" OFF )
option( USE_PSYCH_ERRORS "Report psychrometric errors " ON )
#######################################################################
# TODO: remove at next release
# Temporary workaround to default the correct DOCUMENTATION_BUILD value if BUILD_DOCS existed in the cache or is passed via the command line
# This warning will be triggered only once if it's from the Cache since I'm unsetting it
# (such as when using the GUI or running `cmake .` instead of passing all command line arguments)
if(DEFINED BUILD_DOCS)
if (NOT DEFINED DOCUMENTATION_BUILD)
if(BUILD_DOCS)
message(AUTHOR_WARNING "BUILD_DOCS (=ON) was deprecated in favor of the 'DOCUMENTATION_BUILD' choice, which was defaulted to 'BuildWithAll'")
set(DOCUMENTATION_BUILD "BuildWithAll" CACHE STRING "Build LaTeX-pdf documentation")
else()
message(AUTHOR_WARNING "BUILD_DOCS (=OFF) was deprecated in favor of the 'DOCUMENTATION_BUILD' choice, which was defaulted to 'DoNotBuild")
endif()
else()
message(AUTHOR_WARNING "DOCUMENTATION_BUILD is already defined and has value '${DOCUMENTATION_BUILD}', ignoring BUILD_DOCS")
endif()
unset(BUILD_DOCS CACHE)
endif()
# END TODO
set(DocumentationBuildValues "DoNotBuild;BuildWithAll;BuildOnlyWithPackage" CACHE INTERNAL
"List of possible values for the LaTeX-pdf documentation")
set(DOCUMENTATION_BUILD "DoNotBuild" CACHE STRING "Build LaTeX-pdf documentation")
set_property(CACHE DOCUMENTATION_BUILD PROPERTY STRINGS ${DocumentationBuildValues})
if(NOT DOCUMENTATION_BUILD IN_LIST DocumentationBuildValues)
message(FATAL_ERROR "DOCUMENTATION_BUILD must be one of ${DocumentationBuildValues}")
endif()
# Local only variables for ease of use in if blocks
set(BUILD_DOCS OFF)
set(BUILD_DOCS_ONLY_WITH_PACKAGE OFF)
if(DOCUMENTATION_BUILD STREQUAL "BuildWithAll")
set(BUILD_DOCS ON)
set(BUILD_DOCS_ONLY_WITH_PACKAGE OFF)
elseif(DOCUMENTATION_BUILD STREQUAL "BuildOnlyWithPackage")
set(BUILD_DOCS ON)
set(BUILD_DOCS_ONLY_WITH_PACKAGE ON)
endif()
#######################################################################
option( LINK_WITH_PYTHON "Link with Python Library for Python Plugin Builds" OFF )
# Turning ENABLE_GTEST_DEBUG_MODE ON will cause assertions and exceptions to halt the test case and unwind.
# Turn this option OFF for automated testing.
option( ENABLE_GTEST_DEBUG_MODE "Enable options to help debug test failures" ON )
option( ENABLE_GTEST_SHUFFLE "Enable shuffle to eliminate order dependency" ON )
option( ENABLE_INSTALL_REMOTE "Enable install_remote and install_remote_plist commands to install files from remote resources on the internet" ON )
mark_as_advanced( ENABLE_INSTALL_REMOTE )
# Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
"MinSizeRel" "RelWithDebInfo")
endif()
# we are making *a Python 3.6 Interpreter* a required dependency, so find it here
find_package(PythonInterp 3.6 REQUIRED)
if( BUILD_TESTING )
option( ENABLE_REGRESSION_TESTING "Enable Regression Tests" OFF )
option( BUILD_WCE_TESTING "Build testing targets for Windows Calculation Engine" OFF )
if( ENABLE_REGRESSION_TESTING )
if ( CMAKE_CL_64 )
set( ARCH_FLAG "-64bit" )
else()
set( ARCH_FLAG "" )
endif()
set( REGRESSION_BASELINE_SHA "" CACHE STRING "SHA of baseline comparison" )
set( COMMIT_SHA "" CACHE STRING "Commit sha of this build" )
set( REGRESSION_SCRIPT_PATH "" CACHE PATH "Path to regression scripts" )
set( REGRESSION_BASELINE_PATH "" CACHE PATH "Path to energyplus baseline folder to compare against" )
set( DEVICE_ID "${CMAKE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_ID}${ARCH_FLAG}" CACHE STRING "Identifier for this device configuration" )
endif()
endif()
if( ENABLE_REGRESSION_TESTING )
string(STRIP "${REGRESSION_SCRIPT_PATH}" REG_PATH_STRIPPED)
string(STRIP "${REGRESSION_BASELINE_PATH}" REG_BASELINE_STRIPPED)
if (REG_PATH_STRIPPED STREQUAL "" OR REG_BASELINE_STRIPPED STREQUAL "")
message(AUTHOR_WARNING "Regression testing is enabled, but no script or baseline has been provided, turning it off." )
set( DO_REGRESSION_TESTING OFF )
else()
if( BUILD_FORTRAN )
# No Problem
set( DO_REGRESSION_TESTING ON )
else()
message(AUTHOR_WARNING "For regression testing, you must enable BUILD_FORTRAN in order to call ReadVarEso, turning it off.")
set( DO_REGRESSION_TESTING OFF )
endif()
endif()
endif()
if( UNIX AND NOT APPLE )
set(CMAKE_INSTALL_RPATH "$ORIGIN")
endif()
if ( MSVC AND NOT ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" ) )
if (CMAKE_C_COMPILER_VERSION VERSION_LESS "18.00.30723")
message(FATAL_ERROR "Visual Studio 2013 Update 3 or Greater Required")
endif()
set(gtest_force_shared_crt ON)
endif()
if (MINGW)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif ()
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/Products" )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/Products" )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/Products" )
include(cmake/ProjectMacros.cmake)
include(cmake/CompilerFlags.cmake)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/btwxt/src )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/re2 )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/doj )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/nlohmann )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/valijson )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/ObjexxFCL/src/ )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/SQLite/ SYSTEM )
INCLUDE_DIRECTORIES( "${PROJECT_SOURCE_DIR}/third_party/Expat" "${PROJECT_SOURCE_DIR}/third_party/Expat/lib" SYSTEM )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/CLI/ )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/eigen/ )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/Chromogenics/include)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/Common/include)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/Gases/include)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/MultiLayerOptics/include)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/SingleLayerOptics/include)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/SpectralAveraging/include)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/Tarcog/include)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/Windows-CalcEngine/src/Viewer/include)
if( OPENGL_FOUND )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/third_party/penumbra/include )
endif()
#### Create interface for JSON for Modern C++ so we can include it in targets
# add_library( ModernJSON INTERFACE )
# target_include_directories( ModernJSON INTERFACE "${PROJECT_SOURCE_DIR}/third_party/nlohmann" "${PROJECT_SOURCE_DIR}/third_party/doj" )
set(RE2_BUILD_TESTING OFF CACHE BOOL "" FORCE)
if( OPENGL_FOUND )
set(BUILD_PENUMBRA_TESTING OFF CACHE BOOL "")
endif()
if( BUILD_TESTING )
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
set(BUILD_GTEST ON CACHE BOOL "" FORCE)
set(BUILD_GMOCK ON CACHE BOOL "" FORCE)
option( TEST_ANNUAL_SIMULATION "Use annual simulations for tests instead of only design days" OFF )
enable_testing()
ADD_SUBDIRECTORY(third_party/gtest)
set_target_properties(gtest PROPERTIES FOLDER ThirdParty/gtest)
set_target_properties(gtest_main PROPERTIES FOLDER ThirdParty/gtest)
set_target_properties(gmock PROPERTIES FOLDER ThirdParty/gtest)
set_target_properties(gmock_main PROPERTIES FOLDER ThirdParty/gtest)
endif()
# E+ required libraries
ADD_SUBDIRECTORY(idd)
ADD_SUBDIRECTORY(third_party/SQLite)
set_target_properties(sqlite PROPERTIES FOLDER ThirdParty/SQLite)
ADD_SUBDIRECTORY(third_party/ObjexxFCL)
set_target_properties(objexx PROPERTIES FOLDER ThirdParty/ObjexxFCL)
ADD_SUBDIRECTORY(third_party/BCVTB)
set_target_properties(bcvtb PROPERTIES FOLDER ThirdParty/BCVTB)
ADD_SUBDIRECTORY(third_party/Expat)
set_target_properties(epexpat PROPERTIES FOLDER ThirdParty/Expat)
ADD_SUBDIRECTORY(third_party/FMI)
set_target_properties(epfmiimport PROPERTIES FOLDER ThirdParty/FMI)
ADD_SUBDIRECTORY(third_party/zlib)
set_target_properties(miniziplib PROPERTIES FOLDER ThirdParty/zlib)
ADD_SUBDIRECTORY(third_party/DElight)
set_target_properties(DElight PROPERTIES FOLDER ThirdParty/DElight)
ADD_SUBDIRECTORY(third_party/re2)
set_target_properties(re2 PROPERTIES FOLDER ThirdParty/re2)
ADD_SUBDIRECTORY(third_party/fmt-6.1.2 )
set_target_properties(fmt PROPERTIES FOLDER ThirdParty/fmt)
ADD_SUBDIRECTORY(scripts/dev/generate_embeddable_epJSON_schema)
set_target_properties(generate_embeddedable_epJSON_schema PROPERTIES FOLDER "Internal")
IF( NOT APPLE )
ADD_SUBDIRECTORY(third_party/FMUParser)
set_target_properties(parser PROPERTIES FOLDER ThirdParty/FMI)
ENDIF()
ADD_SUBDIRECTORY(third_party/Windows-CalcEngine)
set_target_properties(Windows-CalcEngine PROPERTIES FOLDER ThirdParty/Windows-CalcEngine)
# Btwxt
INCLUDE_DIRECTORIES( ${gtest_SOURCE_DIR}/include/ SYSTEM )
set(BUILD_BTWXT_TESTING ${BUILD_TESTING} CACHE BOOL "" FORCE)
ADD_SUBDIRECTORY(third_party/btwxt)
set_target_properties(btwxt PROPERTIES FOLDER ThirdParty/Btwxt)
# Kiva
INCLUDE(third_party/cmake/kiva.cmake)
set_target_properties(libkiva PROPERTIES FOLDER ThirdParty/Kiva)
if( OPENGL_FOUND )
ADD_SUBDIRECTORY(third_party/penumbra)
set_target_properties(awning PROPERTIES FOLDER ThirdParty/Penumbra)
set_target_properties(glfw PROPERTIES FOLDER ThirdParty/Penumbra/GLFW)
set_target_properties(glad PROPERTIES FOLDER ThirdParty/Penumbra)
set_target_properties(penumbra PROPERTIES FOLDER ThirdParty/Penumbra)
set_target_properties(tess2 PROPERTIES FOLDER ThirdParty/Penumbra)
endif()
execute_process( COMMAND ${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR}/scripts/dev/generate_epJSON_schema/generate_epJSON_schema.py" "${PROJECT_SOURCE_DIR}" TIMEOUT 30 RESULT_VARIABLE generate_epJSON_schema_result)
if( ${generate_epJSON_schema_result} MATCHES ".*timeout.*" )
message(FATAL_ERROR "Generating epJSON Schema from IDD failed: ${generate_epJSON_schema_result}")
endif()
configure_file( idd/Energy+.idd.in "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Energy+.idd" )
configure_file( idd/Energy+.schema.epJSON.in "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Energy+.schema.epJSON" )
configure_file( idd/BasementGHT.idd "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BasementGHT.idd" )
configure_file( idd/SlabGHT.idd "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SlabGHT.idd" )
# EPLaunch workflow files should be configured
configure_file( "workflows/app_g_postprocess.py" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/workflows/app_g_postprocess.py" )
configure_file( "workflows/calc_soil_surface_temp.py" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/workflows/calc_soil_surface_temp.py" )
configure_file( "workflows/coeff_check.py" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/workflows/coeff_check.py" )
configure_file( "workflows/coeff_conv.py" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/workflows/coeff_conv.py" )
configure_file( "workflows/energyplus.py" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/workflows/energyplus.py" )
configure_file( "workflows/transition.py" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/workflows/transition.py" )
# of course E+ itself
ADD_SUBDIRECTORY(src/EnergyPlus)
set_target_properties(airflownetworklib PROPERTIES FOLDER "Internal")
set_target_properties(GenerateEmbeddedEpJSONSchema PROPERTIES FOLDER "Internal")
set_target_properties(energyplusparser PROPERTIES FOLDER "Internal")
if( BUILD_TESTING )
ADD_SUBDIRECTORY(testfiles)
ADD_SUBDIRECTORY(tst/EnergyPlus/unit)
option( BUILD_PERFORMANCE_TESTS "Build performance testing targets" OFF )
if (BUILD_PERFORMANCE_TESTS)
if (UNIX AND NOT APPLE)
option( VALGRIND_ANALYZE_PERFORMANCE_TESTS "Analyze performance tests via valgrind / callgrind" OFF )
if (VALGRIND_ANALYZE_PERFORMANCE_TESTS)
find_program(VALGRIND NAMES valgrind PATH /usr/bin /usr/local/bin)
endif()
endif()
ADD_SUBDIRECTORY(performance_tests)
endif()
set_target_properties(energyplus_tests PROPERTIES FOLDER Testing)
# set_target_properties(TestAPI_Autosizing_C PROPERTIES FOLDER Testing)
set_target_properties(TestAPI_DataTransfer_C PROPERTIES FOLDER Testing)
set_target_properties(TestAPI_Runtime_C PROPERTIES FOLDER Testing)
set_target_properties(TestAPI_Functional_C PROPERTIES FOLDER Testing)
set_target_properties(TestEnergyPlusCallbacks PROPERTIES FOLDER Testing)
set_target_properties(btwxt_tests PROPERTIES FOLDER ThirdParty/Btwxt)
set_target_properties(kiva_tests PROPERTIES FOLDER ThirdParty/Kiva)
if( OPENGL_FOUND AND BUILD_PENUMBRA_TESTING)
set_target_properties(penumbra_tests PROPERTIES FOLDER ThirdParty/Penumbra)
endif()
endif()
ADD_SUBDIRECTORY(src/ConvertInputFormat)
if( BUILD_FORTRAN )
include(CMakeAddFortranSubdirectory)
cmake_add_fortran_subdirectory(src/ExpandObjects PROJECT ExpandObjects NO_EXTERNAL_INSTALL )
cmake_add_fortran_subdirectory(src/ReadVars PROJECT ReadVars NO_EXTERNAL_INSTALL )
set(TRANSITION_EXTRA_FLAGS "-DCMAKE_VERSION_MAJOR:STRING=${CMAKE_VERSION_MAJOR}" "-DCMAKE_VERSION_MINOR:STRING=${CMAKE_VERSION_MINOR}" "-DCMAKE_VERSION_PATCH:STRING=${CMAKE_VERSION_PATCH}")
cmake_add_fortran_subdirectory(src/Transition PROJECT Transition CMAKE_COMMAND_LINE ${TRANSITION_EXTRA_FLAGS} NO_EXTERNAL_INSTALL )
file( COPY "idd/V9-3-0-Energy+.idd" DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" )
configure_file( idd/Energy+.idd.in "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/V9-4-0-Energy+.idd" )
file( COPY "src/Transition/SupportFiles/Report Variables 9-3-0 to 9-4-0.csv" DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" )
cmake_add_fortran_subdirectory(src/Basement PROJECT Basement NO_EXTERNAL_INSTALL )
cmake_add_fortran_subdirectory(src/HVAC-Diagram PROJECT HVAC-Diagram NO_EXTERNAL_INSTALL )
cmake_add_fortran_subdirectory(src/ParametricPreprocessor PROJECT ParametricPreprocessor NO_EXTERNAL_INSTALL )
cmake_add_fortran_subdirectory(src/Slab PROJECT Slab NO_EXTERNAL_INSTALL )
cmake_add_fortran_subdirectory(src/ConvertESOMTR PROJECT ConvertESOMTR NO_EXTERNAL_INSTALL )
cmake_add_fortran_subdirectory(src/CalcSoilSurfTemp PROJECT CalcSoilSurfTemp NO_EXTERNAL_INSTALL )
cmake_add_fortran_subdirectory(src/AppGPostProcess PROJECT AppGPostProcess NO_EXTERNAL_INSTALL )
endif()
if( BUILD_PACKAGE )
# We handle everything in a dedicated cmake file
include(${PROJECT_SOURCE_DIR}/cmake/Install.cmake)
endif()
if (BUILD_DOCS)
set(DOCS_TESTING ${BUILD_TESTING} CACHE INTERNAL "" FORCE)
add_subdirectory(doc)
endif()
# some parameters are simply not needed for everyday building
mark_as_advanced(CMAKE_INSTALL_PREFIX)
mark_as_advanced(BUILD_SHARED_LIBS)
mark_as_advanced(ENABLE_GTEST_DEBUG_MODE)
mark_as_advanced(ENABLE_GTEST_SHUFFLE)
mark_as_advanced(ENABLE_MEMORY_SANITIZER)
mark_as_advanced(ENABLE_OPENMP)
mark_as_advanced(KIVA_3D)
mark_as_advanced(KIVA_COVERAGE)
mark_as_advanced(KIVA_EXE_BUILD)
mark_as_advanced(KIVA_GROUND_PLOT)
mark_as_advanced(KIVA_STATIC_LIB)
mark_as_advanced(KIVA_TESTING)
mark_as_advanced(BTWXT_COVERAGE)
mark_as_advanced(BUILD_BTWXT_TESTING)
mark_as_advanced(BTWXT_STATIC_LIB)
mark_as_advanced(RE2_BUILD_TESTING)
mark_as_advanced(USEPCRE)
mark_as_advanced(CCACHE_PROGRAM)
mark_as_advanced(CMAKE_VERSION_BUILD)
mark_as_advanced(ENABLE_REGRESSION_TESTING)
mark_as_advanced(TEST_ANNUAL_SIMULATION)
mark_as_advanced(gtest_build_samples)
mark_as_advanced(gtest_build_tests)
mark_as_advanced(gtest_disable_pthreads)
mark_as_advanced(gtest_force_shared_crt)
mark_as_advanced(gtest_hide_internal_symbols)
mark_as_advanced(FMT_CUDA_TEST)
mark_as_advanced(FMT_DOC)
mark_as_advanced(FMT_FUZZ)
mark_as_advanced(FMT_INSTALL)
mark_as_advanced(FMT_PEDANTIC)
mark_as_advanced(FMT_TEST)
mark_as_advanced(FMT_WERROR)
mark_as_advanced(GLFW_BUILD_DOCS)
mark_as_advanced(GLFW_BUILD_EXAMPLES)
mark_as_advanced(GLFW_BUILD_TESTS)
mark_as_advanced(GLFW_INSTALL)
mark_as_advanced(GLFW_USE_OSMESA)
mark_as_advanced(GLFW_USE_WAYLAND)
mark_as_advanced(GLFW_VULKAN_STATIC)
mark_as_advanced(BUILD_PENUMBRA_TESTING)
mark_as_advanced(PENUMBRA_COVERAGE)
mark_as_advanced(PENUMBRA_STATIC_LIB)
mark_as_advanced(BUILD_GMOCK)
mark_as_advanced(BUILD_GTEST)
mark_as_advanced(gmock_build_tests)
mark_as_advanced(BUILD_WCE_TESTING)
mark_as_advanced(USE_PSYCHROMETRICS_CACHING)
mark_as_advanced(USE_GLYCOL_CACHING)
mark_as_advanced(USE_PSYCH_STATS)
mark_as_advanced(USE_PSYCH_ERRORS)