1
0
mirror of https://github.com/RPCS3/soundtouch.git synced 2024-11-09 20:33:03 +01:00

CMake: fix SoundTouchDLL build with MSVC

This commit is contained in:
Be 2021-09-07 08:35:18 -05:00
parent 7df5617a4b
commit d7b7a2f3a1
No known key found for this signature in database
GPG Key ID: F4D83691462F656E

View File

@ -123,6 +123,7 @@ if(SOUNDTOUCH_DLL)
target_compile_options(SoundTouch PRIVATE -fPIC)
target_compile_options(SoundTouchDLL PRIVATE -fPIC ${COMPILE_OPTIONS})
set_target_properties(SoundTouchDLL PROPERTIES CXX_VISIBILITY_PRESET hidden)
target_compile_definitions(SoundTouchDLL PRIVATE DLL_EXPORTS)
target_include_directories(SoundTouchDLL PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
target_link_libraries(SoundTouchDLL PRIVATE SoundTouch)
install(FILES source/SoundTouchDLL/SoundTouchDLL.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/soundtouch")