diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ad7c4e96..edf19a835 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,3 +92,10 @@ elseif(UNIX) endif(USE_SYSTEM_RTMIDI) endif(MSVC) +if(APPLE) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libsp_midi.dylib DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME libsp_midi.so) +elseif(MSVC) + install(TARGETS libsp_midi RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) +else() + install(TARGETS libsp_midi LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}) +endif()