summaryrefslogtreecommitdiff
path: root/assets/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'assets/cpp')
-rw-r--r--assets/cpp/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
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})