Skip to content

Commit

Permalink
specify debian dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chrehall68 committed Apr 25, 2023
1 parent cfe410a commit 783ffe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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})

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 783ffe1

Please sign in to comment.