summaryrefslogtreecommitdiff
path: root/assets/cpp/CMakeLists.txt
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-29 14:48:38 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-29 14:48:38 +1000
commit416a41affeaecf1ac6720fde4bae5d33e5ec3d75 (patch)
tree837c3d4acd4418363d6924f620a48f076dca7d41 /assets/cpp/CMakeLists.txt
parentnix: fixes (diff)
downloadcaelestia-shell-416a41affeaecf1ac6720fde4bae5d33e5ec3d75.tar.gz
caelestia-shell-416a41affeaecf1ac6720fde4bae5d33e5ec3d75.tar.bz2
caelestia-shell-416a41affeaecf1ac6720fde4bae5d33e5ec3d75.zip
lib: add version script
Diffstat (limited to '')
-rw-r--r--assets/cpp/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
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})