forked from CoatiSoftware/Sourcetrail
-
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·543 lines (426 loc) · 16.9 KB
/
CMakeLists.txt
File metadata and controls
executable file
·543 lines (426 loc) · 16.9 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
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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
cmake_minimum_required(VERSION 3.27)
# Vcpkg ------------------------------------------------------------------------
if (CMAKE_TOOLCHAIN_FILE MATCHES "vcpkg.cmake$")
message(STATUS "Vcpkg Build")
set(isVcpkgBuild TRUE)
else()
message(STATUS "System Build")
set(isVcpkgBuild FALSE)
endif()
if (isVcpkgBuild)
set(VCPKG_INSTALL_OPTIONS
# Don't print package usages:
--no-print-usage
# Prevent rebuilding after a compiler update:
--x-abi-tools-use-exact-versions
# Clean everything except sources:
#--clean-downloads-after-build
#--clean-packages-after-build
)
endif()
# Project ----------------------------------------------------------------------
project(Sourcetrail VERSION 2026.4.10 HOMEPAGE_URL "http://sourcetrail.de")
# cmake_print_variables(CMAKE_CXX_COMPILER)
include(CMakePrintHelpers)
include(cmake/Sourcetrail.cmake)
# Make the build type available as a compiler variable:
if (isVcpkgBuild)
add_compile_definitions(IS_VCPKG_BUILD=1)
else()
add_compile_definitions(IS_VCPKG_BUILD=0)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
# CMakeCache.txt entry: "-O3 -DNDEBUG"
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -fno-fast-math -flto=auto")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -flto=auto")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# https://learn.microsoft.com/en-us/cpp/build/optimization-best-practices
# CMakeCache.txt entry: "/O2 /Ob2 /DNDEBUG"
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /O2 /Gy /GL /fp:precise /GS-")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG /OPT:REF,ICF")
# For profiling:
#set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
#set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG")
endif()
#cmake_print_variables(CMAKE_CXX_FLAGS_RELEASE CMAKE_EXE_LINKER_FLAGS_RELEASE)
#cmake_print_variables(CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO)
# Configure which language(s)/package(s) should be supported:
option(BUILD_CXX_LANGUAGE_PACKAGE "Add C/C++ support to the Sourcetrail indexer." OFF)
option(BUILD_JAVA_LANGUAGE_PACKAGE "Add Java support to the Sourcetrail indexer." OFF)
option(BUILD_UNIT_TESTS_PACKAGE "Build the corresponding language unit tests." OFF)
configure_file(cmake/language_packages.h.in src/lib/language_packages.h)
# Make Ninja build verbose as well (https://github.com/ninja-build/ninja/issues/900):
if (CMAKE_VERBOSE_MAKEFILE)
set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "Verbose Makefile" FORCE)
endif()
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# set Standard build type to Release
set(CMAKE_BUILD_TYPE_INIT "Release")
#[[
#RPATH
if (UNIX)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib/:$$ORIGIN/lib/")
endif()
]]
# Specify the requested standards:
# https://cmake.org/cmake/help/latest/prop_tgt/C_STANDARD.html
# https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_FIND_PACKAGE_SORT_ORDER NATURAL)
# Prepare Data ----------------------------------------------------------------
if (UNIX)
configure_file(scripts/generate_coverage_report.sh generate_coverage_report.sh COPYONLY)
endif()
get_property(isMultiConfigGenerator GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if (isMultiConfigGenerator)
message(FATAL_ERROR "Multi-configuration generators are not supported!")
# TODO: Test/Support multi-configutration generators
# foreach(CONFIGURATION_TYPE ${CMAKE_CONFIGURATION_TYPES})
# file(COPY "bin/app/data/" DESTINATION "${CONFIGURATION_TYPE}/app/data/")
# file(COPY "bin/app/user/" DESTINATION "${CONFIGURATION_TYPE}/app/user/")
# file(COPY "bin/test/data/" DESTINATION "${CONFIGURATION_TYPE}/test/data/")
# endforeach()
else()
set(appDataSourceDir "${CMAKE_SOURCE_DIR}/bin/app/")
set(appDataTargetDir "${CMAKE_BINARY_DIR}/app/")
message(STATUS "Copying: ${appDataSourceDir} -> ${appDataTargetDir}")
file(COPY "${appDataSourceDir}" DESTINATION "${appDataTargetDir}")
if (BUILD_UNIT_TESTS_PACKAGE)
# The test data contains symlinked files and directories which are used from 'FilePathTestSuite'
# and 'FileSystemTestSuite'. CMake, as of this writing (2025-03-07), doesn't copy symlinks
# correctly (https://gitlab.kitware.com/cmake/cmake/-/issues/14609) or rather it depends on the
# underlying platform.
set(testDataSourceDir "${CMAKE_SOURCE_DIR}/bin/test/data/")
set(testDataTargetParentDir "${CMAKE_BINARY_DIR}/test/")
set(testDataTargetDir "${testDataTargetParentDir}data") # Without a '/' at the end!
if (UNIX)
# Under Linux the symlinks are copied correctly, so copy the data:
message(STATUS "Copying: ${testDataSourceDir} -> ${testDataTargetDir}")
file(COPY "${testDataSourceDir}" DESTINATION "${testDataTargetDir}")
else()
# Under Windows the symlinks are *not* copied correctly (results in invalid files), so
# symlink the data.
# Note: Temporary test files will show up in version control!
message(STATUS "Linking: ${testDataSourceDir} -> ${testDataTargetDir}")
file(MAKE_DIRECTORY "${testDataTargetParentDir}")
file(CREATE_LINK "${testDataSourceDir}" "${testDataTargetDir}" SYMBOLIC)
endif()
endif()
endif()
# ICU --------------------------------------------------------------------------
find_package(ICU REQUIRED
COMPONENTS
i18n uc data
)
message(STATUS "Found ICU ${ICU_VERSION}: ${ICU_INCLUDE_DIRS}, ${ICU_LIBRARIES}")
add_library(External_lib_icu INTERFACE)
target_compile_definitions(External_lib_icu
INTERFACE
U_CHARSET_IS_UTF8=1
)
# The documented imported targets:
# ICU::i18n
# ICU::uc
# ICU::data
# lead to a linker error: "undefined reference to `icudt74_dat'",
# so use the provided result variables:
target_include_directories(External_lib_icu
INTERFACE
${ICU_INCLUDE_DIRS}
)
target_link_libraries(External_lib_icu
INTERFACE
${ICU_LIBRARIES}
)
# Boost ------------------------------------------------------------------------
set(Boost_NO_WARN_NEW_VERSIONS ON)
if (isVcpkgBuild)
# Associated bug entry: https://gitlab.kitware.com/cmake/cmake/-/issues/21200 has been closed.
set(Boost_NO_SYSTEM_PATHS ON)
endif()
set(BOOST_MIN_VERSION 1.83)
set(BOOST_MAX_VERSION 1.91)
find_package(Boost CONFIG REQUIRED
COMPONENTS
date_time
filesystem
locale
program_options
)
message(STATUS "Found Boost ${Boost_VERSION}: ${Boost_INCLUDE_DIRS}") # ${Boost_DIR} contains the path to BoostConfig.cmake|boost-config.cmake.
checkVersionRange("Boost" ${Boost_VERSION} ${BOOST_MIN_VERSION} ${BOOST_MAX_VERSION})
add_library(External_lib_boost INTERFACE)
target_compile_definitions(External_lib_boost
INTERFACE
# Try to detect deprecations early:
#BOOST_ASIO_NO_DEPRECATED
#BOOST_PROCESS_NO_DEPRECATED
#BOOST_FILESYSTEM_NO_DEPRECATED
# Use the same linking approach on all platforms:
#BOOST_ALL_NO_LIB
# Fix "Boost-uuid should link against bcrypt on windows"
# (https://github.com/microsoft/vcpkg/issues/4481)
BOOST_UUID_FORCE_AUTO_LINK
# If boost::filesystem gets replaced with std::filesystem, then this symbol must be defined:
#BOOST_DLL_USE_STD_FS
)
target_link_libraries(External_lib_boost
INTERFACE
Boost::headers
Boost::date_time
Boost::filesystem
Boost::locale
Boost::program_options
# Prevent linker error in vcpkg build:
External_lib_icu
)
# Qt ---------------------------------------------------------------------------
set(QT_NO_PRIVATE_MODULE_WARNING ON)
set(QT_MIN_VERSION 6.8.3)
# set (QT_MAX_VERSION_HEX 0x060802)
find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED
COMPONENTS
Network
# PrintSupport
Svg
Widgets
)
message(STATUS "Found Qt ${Qt6_VERSION}")
add_library(External_lib_qt INTERFACE)
# Enable warnings for deprecated APIs:
target_compile_definitions(External_lib_qt
INTERFACE
# QT_DISABLE_DEPRECATED_UP_TO=${QT_MAX_VERSION_HEX}
# QT_ENABLE_STRICT_MODE_UP_TO=${QT_MAX_VERSION_HEX}
QT_NO_FOREACH
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
QT_NO_QASCONST
QT_USE_NODISCARD_FILE_OPEN
QT_NO_QSNPRINTF
# Prevent creating QPixmap inadvertently with 'const char []':
QT_NO_IMAGEFORMAT_XPM
)
target_link_libraries(External_lib_qt
INTERFACE
Qt6::Network
# Qt6::PrintSupport
Qt6::Svg
Qt6::Widgets
)
# SQLite3 ----------------------------------------------------------------------
if (isVcpkgBuild)
find_package(unofficial-sqlite3 CONFIG REQUIRED)
if (NOT DEFINED SQLite3_VERSION)
# Use quotes to indicate a version literal:
set(SQLite3_VERSION "\"3.50.4\"")
endif()
add_library(External_lib_sqlite3 ALIAS unofficial::sqlite3::sqlite3)
else()
find_package(SQLite3 REQUIRED)
add_library(External_lib_sqlite3 ALIAS SQLite::SQLite3)
endif()
message(STATUS "Found SQLite3 ${SQLite3_VERSION}")
# TinyXML ----------------------------------------------------------------------
if (isVcpkgBuild)
find_package(tinyxml CONFIG REQUIRED)
if (NOT DEFINED tinyxml_VERSION)
# Use quotes to indicate a version literal:
set(tinyxml_VERSION "\"2.6.2\"")
endif()
add_library(External_lib_tinyxml ALIAS unofficial-tinyxml::unofficial-tinyxml)
else()
if (UNIX)
find_package(PkgConfig REQUIRED)
endif()
pkg_check_modules(tinyxml tinyxml IMPORTED_TARGET REQUIRED)
add_library(External_lib_tinyxml ALIAS PkgConfig::tinyxml)
endif()
message(STATUS "Found tinyxml ${tinyxml_VERSION}")
# AidKit -----------------------------------------------------------------------------------
add_subdirectory(src/lib_aidkit)
# External Lib CppSQlite3 ------------------------------------------------------------------
add_subdirectory(src/external)
# message(STATUS "Using CppSQLite3 ${CppSQLite3_VERSION}")
# Lib Gui ----------------------------------------------------------------------
configure_file(cmake/productVersion.h.in src/lib_gui/productVersion.h)
add_subdirectory(src/resources)
add_subdirectory(src/lib_gui)
# Lib --------------------------------------------------------------------------
if (UNIX)
find_package(Threads REQUIRED)
endif()
add_subdirectory(src/lib)
#
# Resolve cyclic dependencies between Sourcetrail_lib and Sourcetrail_lib_gui:
#
set_target_properties(Sourcetrail_lib
PROPERTIES
LINK_INTERFACE_MULTIPLICITY 3
)
set_target_properties(Sourcetrail_lib_gui
PROPERTIES
LINK_INTERFACE_MULTIPLICITY 3
)
# Lib Cxx ----------------------------------------------------------------------
if (BUILD_CXX_LANGUAGE_PACKAGE)
# Integrate LLVM/LibTooling.
# For further details see https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project
set(CLANG_MIN_VERSION 18)
set(CLANG_MAX_VERSION 21)
find_package(Clang CONFIG REQUIRED) # Minimum version and/or version range xx...<yy doesn't work.
message(STATUS "Found LLVM: ${LLVM_VERSION}") # ${LLVM_INSTALL_PREFIX} ${CLANG_INSTALL_PREFIX}")
checkVersionRange("Clang" ${LLVM_VERSION} ${CLANG_MIN_VERSION} ${CLANG_MAX_VERSION})
add_library(External_lib_clang INTERFACE)
separate_arguments(llvmDefinitions NATIVE_COMMAND ${LLVM_DEFINITIONS})
target_compile_definitions(External_lib_clang
INTERFACE
${llvmDefinitions}
)
target_include_directories(External_lib_clang SYSTEM
INTERFACE
${LLVM_INCLUDE_DIRS}
${CLANG_INCLUDE_DIRS}
)
# 'LLVM_LINK_LLVM_DYLIB' is set when LLVM has been build into a single shared library i.e. 'libLLVM'
# 'CLANG_LINK_CLANG_DYLIB' is set when Clang has been build into a single shared library i.e. 'libclang-cpp'
if (LLVM_LINK_LLVM_DYLIB AND CLANG_LINK_CLANG_DYLIB)
target_link_libraries(External_lib_clang
INTERFACE
LLVM
clang-cpp
)
else()
llvm_map_components_to_libnames(llvmLibraries ${LLVM_TARGETS_TO_BUILD} support core libdriver passes option)
target_link_libraries(External_lib_clang
INTERFACE
${llvmLibraries}
# LibTooling libraries:
clangASTMatchers
clangFrontend
clangSerialization
clangDriver
clangTooling
clangParse
clangSema
clangStaticAnalyzerFrontend
clangStaticAnalyzerCheckers
clangStaticAnalyzerCore
clangAnalysis
clangRewriteFrontend
clangEdit
clangAST
clangLex
clangBasic
)
endif()
# Copy required header:
if (isVcpkgBuild)
cmake_path(SET headerSourceDir NORMALIZE "${CLANG_INSTALL_PREFIX}/tools/llvm/lib/clang/${LLVM_VERSION_MAJOR}/include/")
else()
cmake_path(SET headerSourceDir NORMALIZE "${CLANG_INSTALL_PREFIX}/lib/clang/${LLVM_VERSION_MAJOR}/include/")
endif()
cmake_path(SET headerTargetDir NORMALIZE "${CMAKE_BINARY_DIR}/app/data/cxx/include/")
message(STATUS "Copying Clang header: ${headerSourceDir} -> ${headerTargetDir}")
file(COPY "${headerSourceDir}" DESTINATION "${headerTargetDir}")
add_subdirectory(src/lib_cxx)
else()
message(STATUS "Building the C++ indexer is disabled. You can enable it by setting 'BUILD_CXX_LANGUAGE_PACKAGE' to 'ON'.")
endif()
# Lib Java ---------------------------------------------------------------------
# To set the `JAVA_HOME` environment variable automatically on Linux, you can use this line:
# export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
# See https://www.xmodulo.com/set-java_home-environment-variable-linux.html for further details
if (BUILD_JAVA_LANGUAGE_PACKAGE)
# Java (Latest LTS version):
find_package(Java 21 REQUIRED)
message(STATUS "Found Java ${Java_VERSION}: ${Java_JAVAC_EXECUTABLE}")
# JNI:
find_package(JNI REQUIRED)
message(STATUS "Found JNI ${JNI_VERSION}: ${JNI_INCLUDE_DIRS}")
# Maven:
find_program(MVN_COMMAND NAMES "mvn" REQUIRED)
message(STATUS "Found Maven: ${MVN_COMMAND}")
add_subdirectory(src/lib_java)
add_subdirectory(java_indexer)
else()
message(STATUS "Building the Java indexer is disabled. You can enable it by setting 'BUILD_JAVA_LANGUAGE_PACKAGE' to 'ON'.")
endif()
# Indexer App ------------------------------------------------------------------
add_subdirectory(src/indexer)
# App --------------------------------------------------------------------------
configure_file(src/app/Sourcetrail.ico app/Sourcetrail.ico COPYONLY)
if (UNIX)
configure_file(scripts/Sourcetrail.sh app/Sourcetrail.sh COPYONLY)
configure_file(scripts/resetPreferences.sh app/resetPreferences.sh COPYONLY)
configure_file(scripts/_gdbinit app/.gdbinit COPYONLY)
endif()
add_subdirectory(src/app)
# Test ----------------------------------------------------------------------
set(CATCH2_MIN_VERSION 3.7)
set(CATCH2_MAX_VERSION 3.13)
if (BUILD_UNIT_TESTS_PACKAGE)
include(CTest)
find_package(GTest CONFIG REQUIRED)
message(STATUS "Found GTest ${GTest_VERSION}")
include(GoogleTest)
add_subdirectory(src/test_aidkit)
find_package(Catch2 CONFIG REQUIRED)
message(STATUS "Found Catch2 ${Catch2_VERSION}")
checkVersionRange("Catch2" ${Catch2_VERSION} ${CATCH2_MIN_VERSION} ${CATCH2_MAX_VERSION})
include(Catch)
add_subdirectory(src/test)
else()
message(STATUS "Building the tests is disabled. You can enable them by setting 'BUILD_UNIT_TESTS_PACKAGE' to 'ON'.")
endif()
# Create license information:
include(cmake/licenses.cmake)
configureLicenseFile(src/lib_gui/licenses.h)
# Some sanity checks:
# Note: We doing these checks last so the messages are at the end of a possible long output from cmake.
if (NOT BUILD_CXX_LANGUAGE_PACKAGE AND NOT BUILD_JAVA_LANGUAGE_PACKAGE)
message(WARNING "Building ONLY the GUI, because all language indexers are disabled!")
endif()
# prohibit in-source-builds
if (${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR})
message(FATAL_ERROR "In-source-builds are not supported!")
endif()
if (BUILD_PYTHON_LANGUAGE_PACKAGE)
message(FATAL_ERROR "Python support has been removed!")
# See:
# - https://github.com/petermost/Sourcetrail/issues/34
# - https://github.com/CoatiSoftware/SourcetrailPythonIndexer
endif()
# Enable this code to find out *all* imported targets:
# get_property(importedTargets DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY IMPORTED_TARGETS)
# message(STATUS "Imported targets: ${importedTargets}")
# Installing/Packaging ---------------------------------------------------------
install(DIRECTORY "${CMAKE_BINARY_DIR}/app/" DESTINATION "${PROJECT_NAME}/app/" USE_SOURCE_PERMISSIONS)
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Source code explorer")
set(CPACK_PACKAGE_DESCRIPTION "Free and open-source cross-platform source explorer that helps you get productive on unfamiliar source code.")
set(CPACK_PACKAGE_CONTACT "P. Most <pmost@pera-software.com>")
set(CPACK_PACKAGE_VENDOR "PERA Software Solutions GmbH")
set(CPACK_PACKAGE_HOMEPAGE_URL ${PROJECT_HOMEPAGE_URL})
set(CPACK_PACKAGE_ICON "${CMAKE_BINARY_DIR}/app/Sourcetrail.ico")
if (isVcpkgBuild)
set(CPACK_GENERATOR ZIP)
else()
if (UNIX)
set(CPACK_GENERATOR DEB)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/")
else()
set(CPACK_GENERATOR ZIP)
endif()
endif()
include(CPack)