From 783ffe1f7a7d89bfc56befc56256a483bf6ff3de Mon Sep 17 00:00:00 2001 From: chrehall68 Date: Tue, 25 Apr 2023 13:02:41 -0700 Subject: [PATCH] specify debian dependencies --- CMakeLists.txt | 7 ++++--- README.md | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a116d94..b7a6e7e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.0) -project(ihs_boost VERSION 1.8.2) +project(ihs_boost VERSION 1.8.3) # options option(build_tests "build_tests" OFF) @@ -33,9 +33,10 @@ if(${build_debian}) # generate debian package set(CPACK_GENERATOR "DEB") - # set maintainer + # set debian variables set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Eliot") - + set(CPACK_DEBIAN_PACKAGE_DEPENDS "libjsoncpp-dev, libbluetooth-dev") + # install on target machine to the provided install path set(CPACK_PACKAGE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) diff --git a/README.md b/README.md index 8424aba7..a59d9263 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,10 @@ set(CMAKE_SYSROOT /path/to/your/sysroot) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 --target=${CMAKE_SYSTEM_PROCESSOR}-linux-gnu --sysroot=${CMAKE_SYSROOT} -mcpu=cortex-a53") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") +# when building a debian package, make sure to set this variable +# to the output of `dpkg --print-architecture` on the target machine +set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE arm64) + # where you want to install the files locally before copying # them to their final destination set(CMAKE_STAGING_PREFIX /path/to/temporary/out)