diff --git a/CMakeLists.txt b/CMakeLists.txt index 198ed02..9a79efa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,14 @@ project(pipedal HOMEPAGE_URL "https://rerdavies.github.io/pipedal" ) +set (DISPLAY_VERSION "PiPedal v2.0.105-Release") + +option(PIPEDAL_DISABLE_COPYRIGHT_BUILD "Skip generation of copyright notices (use on non-Debian distros)" OFF) +option(PIPEDAL_EXCLUDE_TESTS "Exclude test targets from default build" OFF) + +set(PIPEDAL_T3K_PUBLISHABLE_KEY "t3k_pub_bHrH8btdwXXTtxz5ryEU8sNLF-2TGRT9") + + # Determine Debian-compatible architecture name (portable across distros) if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") set(DEBIAN_ARCHITECTURE "amd64") @@ -20,12 +28,9 @@ else() endif() message(STATUS "DEBIAN_ARCHITECTURE=${DEBIAN_ARCHITECTURE}") -set (DISPLAY_VERSION "PiPedal v2.0.105-Release") set (PACKAGE_ARCHITECTURE ${DEBIAN_ARCHITECTURE}) set (CMAKE_INSTALL_PREFIX "/usr/") -set(PIPEDAL_T3K_PUBLISHABLE_KEY "t3k_pub_bHrH8btdwXXTtxz5ryEU8sNLF-2TGRT9") - set (LIBZIP_DO_INSTALL OFF CACHE BOOL "Disable libzip install" FORCE) set (SQLITECPP_INSTALL OFF CACHE BOOL "Disable SQLiteCpp install" FORCE) @@ -37,7 +42,6 @@ set(CPACK_SOURCE_IGNORE_FILES "*.a;sqlite3.h;$(CPACK_SOURCE_IGNORE_FILES)" ) -option(PIPEDAL_EXCLUDE_TESTS "Exclude test targets from default build" OFF) include(CTest) enable_testing() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 254bb0c..f8a8f36 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -883,9 +883,7 @@ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Updating copyright notices." ) -option(DISABLE_COPYRIGHT_BUILD "Skip generation of copyright notices (use on non-Debian distros)" OFF) - -if(NOT DISABLE_COPYRIGHT_BUILD) +if(NOT PIPEDAL_DISABLE_COPYRIGHT_BUILD) add_custom_target ( CopyrightBuild ALL DEPENDS ${REACT_NOTICES_FILE}