mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 04:47:14 +02:00
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
use system versions of some things
|
|
--
|
|
diff --git a/src/musikcore/CMakeLists.txt b/src/musikcore/CMakeLists.txt
|
|
index 8309cc3..8894c15 100644
|
|
--- a/src/musikcore/CMakeLists.txt
|
|
+++ b/src/musikcore/CMakeLists.txt
|
|
@@ -1,3 +1,7 @@
|
|
+find_package(PkgConfig REQUIRED)
|
|
+pkg_check_modules(kissfft REQUIRED kissfft-float)
|
|
+pkg_check_modules(sqlite REQUIRED sqlite3)
|
|
+
|
|
set(CORE_SOURCES
|
|
./c_context.cpp
|
|
./c_interface_wrappers.cpp
|
|
@@ -67,10 +71,7 @@ set(CORE_SOURCES
|
|
./support/Playback.cpp
|
|
./support/Preferences.cpp
|
|
./support/PreferenceKeys.cpp
|
|
../3rdparty/src/sqlean/unicode/extension.c
|
|
- ../3rdparty/src/sqlite/sqlite3.c
|
|
- ../3rdparty/src/kiss_fft.c
|
|
- ../3rdparty/src/kiss_fftr.c
|
|
../3rdparty/src/md5.c
|
|
)
|
|
|
|
@@ -85,9 +86,9 @@ add_definitions(-DMCSDK_DEFINE_EXPORTS)
|
|
add_library(musikcore SHARED ${CORE_SOURCES})
|
|
|
|
set_target_properties(musikcore PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${musikcube_SOURCE_DIR}/bin)
|
|
-target_link_libraries(musikcore ${musikcube_LINK_LIBS})
|
|
-target_include_directories(musikcore BEFORE PRIVATE ${VENDOR_INCLUDE_DIRECTORIES})
|
|
+target_link_libraries(musikcore ${musikcube_LINK_LIBS} ${sqlite_LIBRARIES} ${kissfft_LIBRARIES})
|
|
+target_include_directories(musikcore BEFORE PRIVATE ${VENDOR_INCLUDE_DIRECTORIES} ${sqlite_INCLUDE_DIRS} ${kissfft_INCLUDE_DIRS})
|
|
find_header(asio.hpp)
|
|
|
|
if (ENABLE_PCH MATCHES "true")
|
|
message(STATUS "[musikcore] enabling precompiled headers")
|