Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 32 Lines | |||||
find_package(PythonInterp 3.4 REQUIRED) | find_package(PythonInterp 3.4 REQUIRED) | ||||
# Add the magic targets `check-*` | # Add the magic targets `check-*` | ||||
add_custom_target(check-all) | add_custom_target(check-all) | ||||
add_custom_target(check) | add_custom_target(check) | ||||
add_custom_target(check-symbols) | add_custom_target(check-symbols) | ||||
add_custom_target(check-security) | add_custom_target(check-security) | ||||
include(PackageHelper) | |||||
exclude_git_ignored_files_from_source_package() | |||||
# Ignore hidden files and directories (starting with a '.') | |||||
set_property(GLOBAL APPEND PROPERTY SOURCE_PACKAGE_IGNORE_FILES "/\\\\.") | |||||
# If the build is out-of-tree, then the build directory can be ignored. | |||||
if(NOT CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) | |||||
set_property(GLOBAL APPEND PROPERTY SOURCE_PACKAGE_IGNORE_FILES | |||||
"${CMAKE_BINARY_DIR}/" | |||||
) | |||||
endif() | |||||
exclude_from_source_package( | |||||
# Subdirectories | |||||
"arcanist/" | |||||
"depends/" | |||||
# Files | |||||
"[^.]+[.]md$" | |||||
"Dockerfile-doxygen" | |||||
) | |||||
add_subdirectory(src) | add_subdirectory(src) | ||||
add_subdirectory(test) | add_subdirectory(test) | ||||
add_subdirectory(contrib/devtools) | add_subdirectory(contrib) | ||||
add_subdirectory(doc) | add_subdirectory(doc) | ||||
include(PackageOptions) | include(PackageOptions) | ||||
get_property(CPACK_SOURCE_IGNORE_FILES GLOBAL PROPERTY SOURCE_PACKAGE_IGNORE_FILES) | |||||
include(CPack) | include(CPack) | ||||