1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Index: samplerate-0.2.3/CMakeLists.txt
===================================================================
--- samplerate-0.2.3.orig/CMakeLists.txt
+++ samplerate-0.2.3/CMakeLists.txt
@@ -11,12 +11,23 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
cmake_policy(SET CMP0148 NEW)
-# adds the external dependencies
-add_subdirectory(external)
+###################################################
+# no external dependencies for Debian
+###################################################
+# # adds the external dependencies
+# add_subdirectory(external)
+set(PYBIND11_FINDPYTHON ON)
+find_package(pybind11 CONFIG REQUIRED)
pybind11_add_module(python-samplerate src/samplerate.cpp)
-target_include_directories(python-samplerate PRIVATE ./external/libsamplerate/include)
+###################################################
+# here is the path to C headers provided by the package python3-samplerate
+###################################################
+#
+# target_include_directories(python-samplerate PRIVATE ./external/libsamplerate/include)
+
+target_include_directories(python-samplerate PRIVATE /usr/lib/python3/dist-packages/pybind11/include/)
if(MSVC)
target_compile_options(python-samplerate PRIVATE /EHsc /MP /bigobj)
|