From 01d7f69551966b7a317393fffeebdf5775d6df12 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 26 Aug 2025 23:52:17 +1000 Subject: internal: build via cmake --- assets/cpp/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 assets/cpp/CMakeLists.txt (limited to 'assets/cpp') diff --git a/assets/cpp/CMakeLists.txt b/assets/cpp/CMakeLists.txt new file mode 100644 index 0000000..a836850 --- /dev/null +++ b/assets/cpp/CMakeLists.txt @@ -0,0 +1,9 @@ +find_package(PkgConfig REQUIRED) +pkg_check_modules(PIPEWIRE REQUIRED libpipewire-0.3) +pkg_check_modules(AUBIO REQUIRED aubio) + +# Beat detector +add_executable(beat_detector beat-detector.cpp) +target_include_directories(beat_detector PRIVATE ${PIPEWIRE_INCLUDE_DIRS} ${AUBIO_INCLUDE_DIRS}) +target_link_libraries(beat_detector PRIVATE ${PIPEWIRE_LIBRARIES} ${AUBIO_LIBRARIES}) +install(TARGETS beat_detector DESTINATION ${INSTALL_LIBDIR}) -- cgit v1.2.3-freya