Move options to start of CMakeFile. Rename to PIPEDAL_DISABLE_COPYRIGHT_BUILD to minimize potential package comflicts.
This commit is contained in:
+8
-4
@@ -5,6 +5,14 @@ project(pipedal
|
|||||||
HOMEPAGE_URL "https://rerdavies.github.io/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)
|
# Determine Debian-compatible architecture name (portable across distros)
|
||||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
|
||||||
set(DEBIAN_ARCHITECTURE "amd64")
|
set(DEBIAN_ARCHITECTURE "amd64")
|
||||||
@@ -20,12 +28,9 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
message(STATUS "DEBIAN_ARCHITECTURE=${DEBIAN_ARCHITECTURE}")
|
message(STATUS "DEBIAN_ARCHITECTURE=${DEBIAN_ARCHITECTURE}")
|
||||||
|
|
||||||
set (DISPLAY_VERSION "PiPedal v2.0.105-Release")
|
|
||||||
set (PACKAGE_ARCHITECTURE ${DEBIAN_ARCHITECTURE})
|
set (PACKAGE_ARCHITECTURE ${DEBIAN_ARCHITECTURE})
|
||||||
set (CMAKE_INSTALL_PREFIX "/usr/")
|
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 (LIBZIP_DO_INSTALL OFF CACHE BOOL "Disable libzip install" FORCE)
|
||||||
set (SQLITECPP_INSTALL OFF CACHE BOOL "Disable SQLiteCpp 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)"
|
"*.a;sqlite3.h;$(CPACK_SOURCE_IGNORE_FILES)"
|
||||||
)
|
)
|
||||||
|
|
||||||
option(PIPEDAL_EXCLUDE_TESTS "Exclude test targets from default build" OFF)
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -883,9 +883,7 @@ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|||||||
COMMENT "Updating copyright notices."
|
COMMENT "Updating copyright notices."
|
||||||
)
|
)
|
||||||
|
|
||||||
option(DISABLE_COPYRIGHT_BUILD "Skip generation of copyright notices (use on non-Debian distros)" OFF)
|
if(NOT PIPEDAL_DISABLE_COPYRIGHT_BUILD)
|
||||||
|
|
||||||
if(NOT DISABLE_COPYRIGHT_BUILD)
|
|
||||||
add_custom_target (
|
add_custom_target (
|
||||||
CopyrightBuild ALL
|
CopyrightBuild ALL
|
||||||
DEPENDS ${REACT_NOTICES_FILE}
|
DEPENDS ${REACT_NOTICES_FILE}
|
||||||
|
|||||||
Reference in New Issue
Block a user