File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,13 +10,17 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1010
1111cmake_policy (SET CMP0094 NEW )
1212
13- # adds the external dependencies
14- add_subdirectory (external )
13+ option (USE_SYSTEM_LIBRARIES "Use system libsamplerate and pybind instead of building separate versions" ON )
14+ if (USE_SYSTEM_LIBRARIES)
15+ find_package (pybind11 REQUIRED )
16+ else ()
17+ # adds the external dependencies
18+ add_subdirectory (external )
19+ target_include_directories (python-samplerate PRIVATE ./external/libsamplerate/include )
20+ endif ()
1521
1622pybind11_add_module (python-samplerate src/samplerate.cpp )
1723
18- target_include_directories (python-samplerate PRIVATE ./external/libsamplerate/include )
19-
2024if (MSVC )
2125 target_compile_options (python-samplerate PRIVATE /EHsc /MP /bigobj )
2226 set (CMAKE_EXE_LINKER_FLAGS /MANIFEST:NO )
You can’t perform that action at this time.
0 commit comments