commit 02659610b76cb9b090090dad3affa1507bfd0ea8
parent 725f5c49a234478d5aeb0acaae9c17329d40850c
Author: [email protected] <[email protected]>
Date: Thu, 14 Dec 2023 07:13:51 +0000
Module versions
Diffstat:
4 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/sources.cmake b/sources.cmake
@@ -459,6 +459,7 @@ set(
${PROJECT_SOURCE_DIR}/src/dft/dft.cpp
${PROJECT_SOURCE_DIR}/src/dft/fft-impl-f32.cpp
${PROJECT_SOURCE_DIR}/src/dft/fft-impl-f64.cpp
+ ${PROJECT_SOURCE_DIR}/src/dft/version.cpp
)
@@ -467,12 +468,14 @@ set(
${PROJECT_SOURCE_DIR}/src/dsp/biquad.cpp
${PROJECT_SOURCE_DIR}/src/dsp/fir.cpp
${PROJECT_SOURCE_DIR}/src/dsp/sample_rate_conversion.cpp
+ ${PROJECT_SOURCE_DIR}/src/dsp/version.cpp
)
set(
KFR_IO_SRC
${PROJECT_SOURCE_DIR}/src/io/audiofile-impl.cpp
+ ${PROJECT_SOURCE_DIR}/src/io/version.cpp
)
diff --git a/src/dft/version.cpp b/src/dft/version.cpp
@@ -0,0 +1,6 @@
+#include <kfr/kfr.h>
+
+namespace kfr
+{
+const char* library_version_dft() { return KFR_VERSION_FULL; }
+} // namespace kfr
diff --git a/src/dsp/version.cpp b/src/dsp/version.cpp
@@ -0,0 +1,6 @@
+#include <kfr/kfr.h>
+
+namespace kfr
+{
+const char* library_version_dsp() { return KFR_VERSION_FULL; }
+} // namespace kfr
diff --git a/src/io/version.cpp b/src/io/version.cpp
@@ -0,0 +1,6 @@
+#include <kfr/kfr.h>
+
+namespace kfr
+{
+const char* library_version_io() { return KFR_VERSION_FULL; }
+} // namespace kfr