From 416a41affeaecf1ac6720fde4bae5d33e5ec3d75 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 29 Aug 2025 14:48:38 +1000 Subject: lib: add version script --- assets/cpp/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'assets/cpp/CMakeLists.txt') diff --git a/assets/cpp/CMakeLists.txt b/assets/cpp/CMakeLists.txt index ef12370..18beabf 100644 --- a/assets/cpp/CMakeLists.txt +++ b/assets/cpp/CMakeLists.txt @@ -3,6 +3,16 @@ find_package(PkgConfig REQUIRED) pkg_check_modules(PIPEWIRE REQUIRED libpipewire-0.3) pkg_check_modules(AUBIO REQUIRED aubio) +# Version +add_executable(version version.cpp) +target_compile_definitions(version PRIVATE + PROJECT_NAME="${PROJECT_NAME}" + VERSION="${VERSION}" + GIT_REVISION="${GIT_REVISION}" + DISTRIBUTOR="${DISTRIBUTOR}" +) +install(TARGETS version DESTINATION ${INSTALL_LIBDIR}) + # Beat detector add_executable(beat_detector beat-detector.cpp) target_include_directories(beat_detector PRIVATE ${PIPEWIRE_INCLUDE_DIRS} ${AUBIO_INCLUDE_DIRS}) -- cgit v1.2.3-freya