2018-09-26 09:28:10 +02:00
#-------------------------------
# PROJECT INFORMATION
#-------------------------------
2023-05-17 20:00:35 +02:00
cmake_minimum_required ( VERSION 3.14 )
2018-09-26 09:28:10 +02:00
2023-05-15 15:44:10 +02:00
project ( sdbus-c++ VERSION 2.0.0 LANGUAGES C CXX )
2018-09-26 09:28:10 +02:00
include ( GNUInstallDirs ) # Installation directories for `install` command and pkgconfig file
2024-02-10 20:20:42 +01:00
# -------------------------------
# CONFIGURATION OPTIONS
# -------------------------------
option ( SDBUSCPP_BUILD_LIBSYSTEMD "Fetch & build libsystemd static library and make it part of libsdbus-c++, instead of searching for libsystemd in the system" OFF )
if ( SDBUSCPP_BUILD_LIBSYSTEMD )
set ( SDBUSCPP_LIBSYSTEMD_VERSION "242" CACHE STRING "libsystemd version (>=239) to build and incorporate into libsdbus-c++" )
set ( SDBUSCPP_LIBSYSTEMD_EXTRA_CONFIG_OPTS "" CACHE STRING "Additional configuration options to be passed as-is to libsystemd build system" )
endif ()
2024-02-16 09:27:45 +01:00
option ( SDBUSCPP_INSTALL "Enable installation of sdbus-c++ (downstream projects embedding sdbus-c++ may want to turn this OFF)" ON )
2024-02-10 20:20:42 +01:00
option ( SDBUSCPP_BUILD_TESTS "Build tests" OFF )
if ( SDBUSCPP_BUILD_TESTS )
option ( SDBUSCPP_BUILD_PERF_TESTS "Build also sdbus-c++ performance tests" OFF ) # tranferred from tests/cmake
option ( SDBUSCPP_BUILD_STRESS_TESTS "Build also sdbus-c++ stress tests" OFF ) # tranferred from tests/cmake
set ( SDBUSCPP_TESTS_INSTALL_PATH "tests/${PROJECT_NAME}" CACHE STRING "Specifies where the test binaries will be installed" ) # tranferred from tests/cmake
set ( SDBUSCPP_GOOGLETEST_VERSION 1.10.0 CACHE STRING "Version of gmock library to use" ) # tranferred from tests/cmake
set ( SDBUSCPP_GOOGLETEST_GIT_REPO "https://github.com/google/googletest.git" CACHE STRING "A git repo to clone and build googletest from if gmock is not found in the system" ) # tranferred from tests/cmake
endif ()
option ( SDBUSCPP_BUILD_CODEGEN "Build generator tool for C++ native bindings" OFF )
option ( SDBUSCPP_BUILD_EXAMPLES "Build example programs" OFF )
2024-02-16 09:27:45 +01:00
option ( SDBUSCPP_BUILD_DOCS "Build documentation for sdbus-c++" ON )
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_BUILD_DOCS )
option ( SDBUSCPP_BUILD_DOXYGEN_DOCS "Build doxygen documentation for sdbus-c++ API" OFF )
endif ()
#option(SDBUSCPP_CLANG_TIDY "Co-compile with clang-tidy static analyzer" OFF)
#option(SDBUSCPP_COVERAGE "Build sdbus-c++ with code coverage instrumentation" OFF)
# We promote the BUILD_SHARED_LIBS flag to a (global) option only if we are the main project
if ( CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR )
option ( BUILD_SHARED_LIBS "Build shared libraries (.so) instead of static ones (.a)" ON )
endif ()
message ( STATUS "" )
message ( STATUS " *******************************************" )
message ( STATUS " * SDBUS-C++ CONFIGURATION *" )
message ( STATUS " *******************************************" )
message ( STATUS "" )
message ( STATUS " SDBUSCPP_BUILD_LIBSYSTEMD: ${SDBUSCPP_BUILD_LIBSYSTEMD}" )
if ( SDBUSCPP_BUILD_LIBSYSTEMD )
message ( STATUS " SDBUSCPP_LIBSYSTEMD_VERSION: ${SDBUSCPP_LIBSYSTEMD_VERSION}" )
message ( STATUS " SDBUSCPP_LIBSYSTEMD_EXTRA_CONFIG_OPTS: ${SDBUSCPP_LIBSYSTEMD_EXTRA_CONFIG_OPTS}" )
endif ()
message ( STATUS " SDBUSCPP_INSTALL: ${SDBUSCPP_INSTALL}" )
message ( STATUS " SDBUSCPP_BUILD_TESTS: ${SDBUSCPP_BUILD_TESTS}" )
if ( SDBUSCPP_BUILD_TESTS )
message ( STATUS " SDBUSCPP_BUILD_PERF_TESTS: ${SDBUSCPP_BUILD_PERF_TESTS}" )
message ( STATUS " SDBUSCPP_BUILD_STRESS_TESTS: ${SDBUSCPP_BUILD_STRESS_TESTS}" )
message ( STATUS " SDBUSCPP_TESTS_INSTALL_PATH: ${SDBUSCPP_TESTS_INSTALL_PATH}" )
message ( STATUS " SDBUSCPP_GOOGLETEST_VERSION: ${SDBUSCPP_GOOGLETEST_VERSION}" )
message ( STATUS " SDBUSCPP_GOOGLETEST_GIT_REPO: ${SDBUSCPP_GOOGLETEST_GIT_REPO}" )
endif ()
message ( STATUS " SDBUSCPP_BUILD_CODEGEN: ${SDBUSCPP_BUILD_CODEGEN}" )
message ( STATUS " SDBUSCPP_BUILD_EXAMPLES: ${SDBUSCPP_BUILD_EXAMPLES}" )
message ( STATUS " SDBUSCPP_BUILD_DOCS: ${SDBUSCPP_BUILD_DOCS}" )
if ( SDBUSCPP_BUILD_DOCS )
message ( STATUS " SDBUSCPP_BUILD_DOXYGEN_DOCS: ${SDBUSCPP_BUILD_DOXYGEN_DOCS}" )
endif ()
message ( STATUS " BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}" )
message ( STATUS "" )
2018-09-26 09:28:10 +02:00
#-------------------------------
2019-04-28 17:09:37 +02:00
# PERFORMING CHECKS & PREPARING THE DEPENDENCIES
2018-09-26 09:28:10 +02:00
#-------------------------------
2023-11-20 14:41:59 +01:00
set ( LIBSYSTEMD_IMPL "systemd" )
set ( LIBSYSTEMD_LIB "libsystemd" )
2023-08-18 05:08:37 -05:00
2024-02-10 20:20:42 +01:00
if ( NOT SDBUSCPP_BUILD_LIBSYSTEMD )
2019-04-28 17:09:37 +02:00
find_package ( PkgConfig REQUIRED )
2023-01-21 01:47:24 +01:00
pkg_check_modules ( Systemd IMPORTED_TARGET GLOBAL libsystemd>=238 )
2023-08-18 05:08:37 -05:00
if ( NOT TARGET PkgConfig::Systemd )
message ( WARNING "libsystemd not found, checking for libelogind instead" )
2023-01-21 01:47:24 +01:00
pkg_check_modules ( Systemd IMPORTED_TARGET GLOBAL libelogind>=238 )
2023-08-18 05:08:37 -05:00
if ( TARGET PkgConfig::Systemd )
2023-11-20 14:41:59 +01:00
set ( LIBSYSTEMD_IMPL "elogind" )
set ( LIBSYSTEMD_LIB "libelogind" )
2023-08-18 05:08:37 -05:00
string ( REPLACE "." ";" VERSION_LIST ${ Systemd_VERSION } )
list ( GET VERSION_LIST 0 Systemd_VERSION )
2023-10-16 15:30:23 +02:00
else ()
2023-09-16 14:28:58 +00:00
message ( WARNING "libelogind not found, checking for basu instead" )
pkg_check_modules ( Systemd IMPORTED_TARGET GLOBAL basu )
2023-11-20 14:41:59 +01:00
set ( LIBSYSTEMD_IMPL "basu" )
set ( LIBSYSTEMD_LIB "basu" )
2023-09-16 14:28:58 +00:00
# https://git.sr.ht/~emersion/basu/commit/d4d185d29a26
set ( Systemd_VERSION "240" )
2023-08-18 05:08:37 -05:00
endif ()
endif ()
2020-02-01 23:45:28 +01:00
if ( NOT TARGET PkgConfig::Systemd )
2023-01-21 01:47:24 +01:00
message ( FATAL_ERROR "libsystemd of version at least 238 is required, but was not found "
2021-12-14 21:35:11 +01:00
"(if you have systemd in your OS, you may want to install package containing pkgconfig "
" files for libsystemd library. On Ubuntu, that is libsystemd-dev. "
2024-02-10 20:20:42 +01:00
" Alternatively, you may turn SDBUSCPP_BUILD_LIBSYSTEMD on for sdbus-c++ to download, "
" build and incorporate libsystemd as embedded library within sdbus-c++)" )
2019-04-28 17:09:37 +02:00
endif ()
2020-02-01 23:45:28 +01:00
add_library ( Systemd::Libsystemd ALIAS PkgConfig::Systemd )
2021-03-12 14:01:02 +01:00
string ( REGEX MATCHALL "([0-9]+)" SYSTEMD_VERSION_LIST "${Systemd_VERSION}" )
2024-02-10 20:20:42 +01:00
list ( GET SYSTEMD_VERSION_LIST 0 SDBUSCPP_LIBSYSTEMD_VERSION )
message ( STATUS "Building with libsystemd v${SDBUSCPP_LIBSYSTEMD_VERSION}" )
2019-04-28 17:09:37 +02:00
else ()
# Build static libsystemd library as an external project
include ( cmake/LibsystemdExternalProject.cmake )
endif ()
2018-09-26 09:28:10 +02:00
2021-04-01 11:57:58 +01:00
find_package ( Threads REQUIRED )
2018-09-26 09:28:10 +02:00
#-------------------------------
# SOURCE FILES CONFIGURATION
#-------------------------------
2019-05-23 21:40:59 +02:00
set ( SDBUSCPP_SOURCE_DIR ${ CMAKE_CURRENT_SOURCE_DIR } /src )
2018-09-26 09:28:10 +02:00
set ( SDBUSCPP_INCLUDE_SUBDIR sdbus-c++ )
2019-05-23 21:40:59 +02:00
set ( SDBUSCPP_INCLUDE_DIR ${ CMAKE_CURRENT_SOURCE_DIR } /include/ ${ SDBUSCPP_INCLUDE_SUBDIR } )
2018-09-26 09:28:10 +02:00
set ( SDBUSCPP_CPP_SRCS
${ SDBUSCPP_SOURCE_DIR } /Connection.cpp
${ SDBUSCPP_SOURCE_DIR } /Error.cpp
${ SDBUSCPP_SOURCE_DIR } /Message.cpp
${ SDBUSCPP_SOURCE_DIR } /Object.cpp
2019-04-09 21:28:07 +02:00
${ SDBUSCPP_SOURCE_DIR } /Proxy.cpp
2018-09-26 09:28:10 +02:00
${ SDBUSCPP_SOURCE_DIR } /Types.cpp
2019-01-10 08:47:59 +01:00
${ SDBUSCPP_SOURCE_DIR } /Flags.cpp
2019-03-17 18:02:47 +03:00
${ SDBUSCPP_SOURCE_DIR } /VTableUtils.c
${ SDBUSCPP_SOURCE_DIR } /SdBus.cpp )
2018-09-26 09:28:10 +02:00
set ( SDBUSCPP_HDR_SRCS
${ SDBUSCPP_SOURCE_DIR } /Connection.h
${ SDBUSCPP_SOURCE_DIR } /IConnection.h
${ SDBUSCPP_SOURCE_DIR } /MessageUtils.h
2022-02-11 21:53:37 +01:00
${ SDBUSCPP_SOURCE_DIR } /Utils.h
2018-09-26 09:28:10 +02:00
${ SDBUSCPP_SOURCE_DIR } /Object.h
2019-04-09 21:28:07 +02:00
${ SDBUSCPP_SOURCE_DIR } /Proxy.h
2018-09-26 09:28:10 +02:00
${ SDBUSCPP_SOURCE_DIR } /ScopeGuard.h
2019-03-17 18:02:47 +03:00
${ SDBUSCPP_SOURCE_DIR } /VTableUtils.h
${ SDBUSCPP_SOURCE_DIR } /SdBus.h
${ SDBUSCPP_SOURCE_DIR } /ISdBus.h )
2018-09-26 09:28:10 +02:00
set ( SDBUSCPP_PUBLIC_HDRS
2019-04-09 21:28:07 +02:00
${ SDBUSCPP_INCLUDE_DIR } /ConvenienceApiClasses.h
${ SDBUSCPP_INCLUDE_DIR } /ConvenienceApiClasses.inl
2023-12-30 18:40:38 +01:00
${ SDBUSCPP_INCLUDE_DIR } /VTableItems.h
${ SDBUSCPP_INCLUDE_DIR } /VTableItems.inl
2018-09-26 09:28:10 +02:00
${ SDBUSCPP_INCLUDE_DIR } /Error.h
${ SDBUSCPP_INCLUDE_DIR } /IConnection.h
2019-04-09 21:28:07 +02:00
${ SDBUSCPP_INCLUDE_DIR } /AdaptorInterfaces.h
${ SDBUSCPP_INCLUDE_DIR } /ProxyInterfaces.h
2019-05-29 22:28:15 +02:00
${ SDBUSCPP_INCLUDE_DIR } /StandardInterfaces.h
2018-09-26 09:28:10 +02:00
${ SDBUSCPP_INCLUDE_DIR } /IObject.h
2019-04-09 21:28:07 +02:00
${ SDBUSCPP_INCLUDE_DIR } /IProxy.h
2018-09-26 09:28:10 +02:00
${ SDBUSCPP_INCLUDE_DIR } /Message.h
${ SDBUSCPP_INCLUDE_DIR } /MethodResult.h
${ SDBUSCPP_INCLUDE_DIR } /Types.h
2019-01-10 08:47:59 +01:00
${ SDBUSCPP_INCLUDE_DIR } /TypeTraits.h
2019-03-25 16:28:31 +01:00
${ SDBUSCPP_INCLUDE_DIR } /Flags.h
${ SDBUSCPP_INCLUDE_DIR } /sdbus-c++.h )
2018-09-26 09:28:10 +02:00
set ( SDBUSCPP_SRCS ${ SDBUSCPP_CPP_SRCS } ${ SDBUSCPP_HDR_SRCS } ${ SDBUSCPP_PUBLIC_HDRS } )
#-------------------------------
# GENERAL COMPILER CONFIGURATION
#-------------------------------
2020-02-01 23:45:28 +01:00
set ( CMAKE_CXX_STANDARD 17 )
2018-09-26 09:28:10 +02:00
#----------------------------------
# LIBRARY BUILD INFORMATION
#----------------------------------
set ( SDBUSCPP_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}" )
set ( SDBUSCPP_VERSION "${PROJECT_VERSION}" )
2019-05-23 21:40:59 +02:00
# Having an object target allows unit tests to reuse already built sources without re-building
add_library ( sdbus-c++-objlib OBJECT ${ SDBUSCPP_SRCS } )
2023-09-16 14:28:58 +00:00
target_compile_definitions ( sdbus-c++-objlib PRIVATE
BUILD_LIB=1
2024-02-10 20:20:42 +01:00
LIBSYSTEMD_VERSION= ${ SDBUSCPP_LIBSYSTEMD_VERSION }
2023-11-20 14:41:59 +01:00
SDBUS_ ${ LIBSYSTEMD_IMPL }
SDBUS_HEADER=< ${ LIBSYSTEMD_IMPL } /sd-bus.h> )
2019-05-23 21:40:59 +02:00
target_include_directories ( sdbus-c++-objlib PUBLIC $< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include >
2020-02-01 23:45:28 +01:00
$< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src > )
2023-09-25 08:53:24 +02:00
if ( BUILD_SHARED_LIBS )
set_target_properties ( sdbus-c++-objlib PROPERTIES POSITION_INDEPENDENT_CODE ON )
2019-03-28 18:47:49 +01:00
endif ()
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_BUILD_LIBSYSTEMD )
2019-05-23 21:40:59 +02:00
add_dependencies ( sdbus-c++-objlib LibsystemdBuildProject )
2019-04-28 17:09:37 +02:00
endif ()
2021-04-13 10:45:49 +02:00
target_link_libraries ( sdbus-c++-objlib
PUBLIC
Systemd::Libsystemd
Threads::Threads )
2019-03-28 18:47:49 +01:00
2020-02-01 23:45:28 +01:00
add_library ( sdbus-c++ )
2019-05-23 21:40:59 +02:00
target_include_directories ( sdbus-c++ PUBLIC $< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include >
$< INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} > )
2018-09-26 09:28:10 +02:00
set_target_properties ( sdbus-c++
2019-05-23 21:40:59 +02:00
PROPERTIES PUBLIC_HEADER "${SDBUSCPP_PUBLIC_HDRS}"
VERSION "${SDBUSCPP_VERSION}"
SOVERSION "${SDBUSCPP_VERSION_MAJOR}"
OUTPUT_NAME "sdbus-c++" )
2020-02-01 23:45:28 +01:00
target_link_libraries ( sdbus-c++ PRIVATE sdbus-c++-objlib )
2018-09-26 09:28:10 +02:00
#----------------------------------
# TESTS
#----------------------------------
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_BUILD_TESTS )
2020-07-21 12:12:14 +02:00
message ( STATUS "Building with tests" )
2018-09-26 09:28:10 +02:00
enable_testing ()
2019-05-23 21:40:59 +02:00
add_subdirectory ( "${CMAKE_CURRENT_SOURCE_DIR}/tests" )
2018-09-26 09:28:10 +02:00
endif ()
#----------------------------------
# UTILS
#----------------------------------
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_BUILD_CODEGEN )
2020-07-21 12:12:14 +02:00
message ( STATUS "Building with code generator tool" )
2019-05-23 21:40:59 +02:00
add_subdirectory ( "${CMAKE_CURRENT_SOURCE_DIR}/tools" )
2018-09-26 09:28:10 +02:00
endif ()
2021-10-14 15:54:44 +02:00
#----------------------------------
# EXAMPLES
#----------------------------------
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_BUILD_EXAMPLES )
2021-10-14 15:54:44 +02:00
message ( STATUS "Building with examples" )
add_subdirectory ( examples )
endif ()
2018-09-26 09:28:10 +02:00
#----------------------------------
# DOCUMENTATION
#----------------------------------
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_BUILD_DOCS )
2020-07-21 12:12:14 +02:00
message ( STATUS "Building with documentation" )
2019-05-23 21:40:59 +02:00
add_subdirectory ( "${CMAKE_CURRENT_SOURCE_DIR}/docs" )
2019-03-29 21:50:08 +01:00
endif ()
2018-09-26 09:28:10 +02:00
#----------------------------------
# CMAKE CONFIG & PACKAGE CONFIG
#----------------------------------
2019-03-14 11:08:42 +01:00
include ( CMakePackageConfigHelpers )
2018-09-26 09:28:10 +02:00
2019-05-23 21:40:59 +02:00
configure_package_config_file ( cmake/sdbus-c++-config.cmake.in cmake/sdbus-c++-config.cmake
INSTALL_DESTINATION ${ CMAKE_INSTALL_LIBDIR } /cmake/sdbus-c++ )
write_basic_package_version_file ( cmake/sdbus-c++-config-version.cmake COMPATIBILITY SameMajorVersion )
2018-09-26 09:28:10 +02:00
2024-02-10 20:20:42 +01:00
if ( BUILD_SHARED_LIBS AND ( SDBUSCPP_BUILD_LIBSYSTEMD OR Systemd_LINK_LIBRARIES MATCHES "/libsystemd\.a(;|$)" ))
2022-09-03 21:54:06 +01:00
set ( PKGCONFIG_REQS ".private" )
else ()
set ( PKGCONFIG_REQS "" )
endif ()
2023-11-20 14:41:59 +01:00
set ( PKGCONFIG_DEPS ${ LIBSYSTEMD_LIB } )
2019-05-23 21:40:59 +02:00
configure_file ( pkgconfig/sdbus-c++.pc.in pkgconfig/sdbus-c++.pc @ONLY )
2021-06-07 11:12:53 +02:00
#----------------------------------
2024-02-10 20:20:42 +01:00
# INSTALLATION
2021-06-07 11:12:53 +02:00
#----------------------------------
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_INSTALL )
set ( EXPORT_SET sdbus-c++ )
if ( NOT BUILD_SHARED_LIBS )
list ( APPEND EXPORT_SET "sdbus-c++-objlib" )
endif ()
install ( TARGETS ${ EXPORT_SET }
EXPORT sdbus-c++-targets
2024-02-10 20:30:22 +01:00
RUNTIME DESTINATION ${ CMAKE_INSTALL_BINDIR } COMPONENT sdbus-c++-runtime
LIBRARY DESTINATION ${ CMAKE_INSTALL_LIBDIR } COMPONENT sdbus-c++-runtime NAMELINK_COMPONENT sdbus-c++-dev
ARCHIVE DESTINATION ${ CMAKE_INSTALL_LIBDIR } COMPONENT sdbus-c++-dev
PUBLIC_HEADER DESTINATION ${ CMAKE_INSTALL_INCLUDEDIR } / ${ SDBUSCPP_INCLUDE_SUBDIR } COMPONENT sdbus-c++-dev )
2024-02-10 20:20:42 +01:00
install ( EXPORT sdbus-c++-targets
DESTINATION ${ CMAKE_INSTALL_LIBDIR } /cmake/sdbus-c++
NAMESPACE SDBusCpp::
2024-02-10 20:30:22 +01:00
COMPONENT sdbus-c++-dev )
2024-02-10 20:20:42 +01:00
install ( FILES ${ CMAKE_CURRENT_BINARY_DIR } /cmake/sdbus-c++-config.cmake
${ CMAKE_CURRENT_BINARY_DIR } /cmake/sdbus-c++-config-version.cmake
DESTINATION ${ CMAKE_INSTALL_LIBDIR } /cmake/sdbus-c++
2024-02-10 20:30:22 +01:00
COMPONENT sdbus-c++-dev )
2024-02-10 20:20:42 +01:00
install ( FILES ${ CMAKE_CURRENT_BINARY_DIR } /pkgconfig/sdbus-c++.pc
2024-02-10 20:30:22 +01:00
DESTINATION ${ CMAKE_INSTALL_LIBDIR } /pkgconfig COMPONENT sdbus-c++-dev )
2024-02-10 20:20:42 +01:00
if ( SDBUSCPP_BUILD_DOCS )
2024-02-10 20:30:22 +01:00
install ( FILES README README.md NEWS COPYING ChangeLog AUTHORS DESTINATION ${ CMAKE_INSTALL_DOCDIR } COMPONENT sdbus-c++-doc )
2024-02-10 20:20:42 +01:00
endif ()
endif ()
#----------------------------------
# CPACK
#----------------------------------
2021-06-07 11:12:53 +02:00
set ( CPACK_PACKAGE_VENDOR "Kistler" )
2024-02-10 20:20:42 +01:00
set ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "High-level C++ D-Bus library" )
2021-06-07 11:12:53 +02:00
set ( CPACK_PACKAGE_CONTACT "info@kistler.com" )
2021-12-14 22:09:12 +01:00
set ( CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md" )
2021-10-18 15:30:47 +02:00
set ( CPACK_COMPONENTS_ALL runtime dev doc )
2021-06-07 11:12:53 +02:00
set ( CPACK_COMPONENT_DEV_DEPENDS "runtime" )
# specific for DEB generator
set ( CPACK_DEB_COMPONENT_INSTALL ON )
set ( CPACK_DEBIAN_RUNTIME_DEBUGINFO_PACKAGE ON )
set ( CPACK_DEBIAN_RUNTIME_PACKAGE_NAME ${ PROJECT_NAME } )
set ( CPACK_DEBIAN_FILE_NAME DEB-DEFAULT )
set ( CPACK_DEBIAN_PACKAGE_SECTION "libs" )
set ( CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON )
set ( CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS ON )
2021-09-22 11:44:04 +02:00
set ( CPACK_DEBIAN_DEV_PACKAGE_DEPENDS "libsystemd-dev (>=236)" )
2021-06-07 11:12:53 +02:00
include ( CPack )