|
|
@@ -1,4 +1,4 @@ |
|
|
|
cmake_minimum_required(VERSION 3.10) |
|
|
|
cmake_minimum_required(VERSION 3.12) |
|
|
|
project(WiringPiLib) |
|
|
|
|
|
|
|
# Read version from version.h |
|
|
@@ -37,11 +37,17 @@ set(CPACK_PACKAGE_VERSION_PATCH "") |
|
|
|
set(CPACK_GENERATOR "DEB") |
|
|
|
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) |
|
|
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Grazer Computer Club - GC2 <wiringpi@gc2.at>") |
|
|
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libcrypt1") |
|
|
|
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA |
|
|
|
set(CPACK_DEBIAN_RUNTIME_PACKAGE_DEPENDS "libc6, libcrypt1") |
|
|
|
set(CPACK_DEBIAN_RUNTIME_PACKAGE_CONTROL_EXTRA |
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/debian-template/wiringPi/DEBIAN/postinst" |
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/debian-template/wiringPi/DEBIAN/postrm") |
|
|
|
|
|
|
|
set(CPACK_DEB_COMPONENT_INSTALL TRUE) |
|
|
|
set(CPACK_DEBIAN_RUNTIME_PACKAGE_NAME "${CPACK_PACKAGE_NAME}") |
|
|
|
set(CPACK_DEBIAN_DEVELOPMENT_PACKAGE_NAME "${CPACK_PACKAGE_NAME}-dev") |
|
|
|
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS ON) |
|
|
|
set(CPACK_DEBIAN_DEVELOPMENT_PACKAGE_DEPENDS "${CPACK_DEBIAN_RUNTIME_PACKAGE_NAME}") |
|
|
|
|
|
|
|
# Check for arm or arm64 architecture |
|
|
|
# Let CMake determine a value otherwise |
|
|
|
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm") |
|
|
|