mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-11-08 20:12:27 +01:00
Merge branch 'cmake' into 'master'
CMake fixes for SoundTouchDLL See merge request soundtouch/soundtouch!12
This commit is contained in:
commit
220eb7857c
@ -26,11 +26,13 @@ target_include_directories(SoundTouch PUBLIC
|
||||
|
||||
option(SOUNDTOUCH_DLL "Build SoundTouchDLL C wrapper library" OFF)
|
||||
if(SOUNDTOUCH_DLL)
|
||||
add_library(SoundTouchDLL
|
||||
add_library(SoundTouchDLL SHARED
|
||||
source/SoundTouchDLL/SoundTouchDLL.cpp
|
||||
source/SoundTouchDLL/SoundTouchDLL.rc
|
||||
)
|
||||
target_include_directories(SoundTouchDLL PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
|
||||
install(FILES source/SoundTouchDLL/SoundTouchDLL.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/soundtouch")
|
||||
install(TARGETS SoundTouchDLL EXPORT SoundTouchTargets)
|
||||
endif()
|
||||
|
||||
if(WIN32 AND BUILD_SHARED_LIBS)
|
||||
|
@ -6,3 +6,9 @@ check_required_components(SoundTouch)
|
||||
|
||||
get_target_property(SoundTouch_LOCATION SoundTouch::SoundTouch LOCATION)
|
||||
message(STATUS "Found SoundTouch: ${SoundTouch_LOCATION}")
|
||||
|
||||
if(@SOUNDTOUCH_DLL@)
|
||||
check_require_components(SoundTouchDLL)
|
||||
get_target_property(SoundTouchDLL_LOCATION SoundTouch::SoundTouchDLL LOCATION)
|
||||
message(STATUS "Found SoundTouchDLL: ${SoundTouchDLL_LOCATION}")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user