Expose targets and versions for more dependencies (#6842)

This commit is contained in:
Dominic Clark
2023-11-01 19:34:32 +00:00
committed by GitHub
parent 2a2085c303
commit 7b99c58926
15 changed files with 382 additions and 274 deletions

View File

@@ -9,10 +9,7 @@ IF(LMMS_BUILD_APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
ENDIF()
INCLUDE_DIRECTORIES(
${SAMPLERATE_INCLUDE_DIRS}
"${CMAKE_BINARY_DIR}/src"
)
include_directories("${CMAKE_BINARY_DIR}/src")
# See cmake/modules/PluginList.cmake
FOREACH(PLUGIN ${PLUGIN_LIST})

View File

@@ -12,8 +12,13 @@ if(LMMS_HAVE_GIG)
add_definitions(${GCC_GIG_COMPILE_FLAGS})
endif(LMMS_BUILD_WIN32)
LINK_DIRECTORIES(${GIG_LIBRARY_DIRS} ${SAMPLERATE_LIBRARY_DIRS})
LINK_LIBRARIES(${GIG_LIBRARIES} ${SAMPLERATE_LIBRARIES})
BUILD_PLUGIN(gigplayer GigPlayer.cpp GigPlayer.h PatchesDialog.cpp PatchesDialog.h PatchesDialog.ui MOCFILES GigPlayer.h PatchesDialog.h UICFILES PatchesDialog.ui EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
link_directories(${GIG_LIBRARY_DIRS})
link_libraries(${GIG_LIBRARIES})
build_plugin(gigplayer
GigPlayer.cpp GigPlayer.h PatchesDialog.cpp PatchesDialog.h PatchesDialog.ui
MOCFILES GigPlayer.h PatchesDialog.h
UICFILES PatchesDialog.ui
EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png"
)
target_link_libraries(gigplayer SampleRate::samplerate)
endif(LMMS_HAVE_GIG)

View File

@@ -1,13 +1,10 @@
if(LMMS_HAVE_FLUIDSYNTH)
include(BuildPlugin)
include_directories(${SAMPLERATE_INCLUDE_DIRS})
link_directories(${SAMPLERATE_LIBRARY_DIRS})
link_libraries(${SAMPLERATE_LIBRARIES})
build_plugin(sf2player
Sf2Player.cpp Sf2Player.h PatchesDialog.cpp PatchesDialog.h PatchesDialog.ui
MOCFILES Sf2Player.h PatchesDialog.h
UICFILES PatchesDialog.ui
EMBEDDED_RESOURCES *.png
)
target_link_libraries(sf2player fluidsynth)
target_link_libraries(sf2player fluidsynth SampleRate::samplerate)
endif()

View File

@@ -1,5 +1,8 @@
INCLUDE(BuildPlugin)
include(BuildPlugin)
LINK_DIRECTORIES(${SAMPLERATE_LIBRARY_DIRS})
LINK_LIBRARIES(${SAMPLERATE_LIBRARIES})
BUILD_PLUGIN(watsyn Watsyn.cpp Watsyn.h MOCFILES Watsyn.h EMBEDDED_RESOURCES *.png)
build_plugin(watsyn
Watsyn.cpp Watsyn.h
MOCFILES Watsyn.h
EMBEDDED_RESOURCES *.png
)
target_link_libraries(watsyn SampleRate::samplerate)