- removed hardcoded include and lib directories from install target

This resolves #7
This commit is contained in:
alexey.lysiuk 2020-05-30 11:29:38 +03:00
parent 425ac9048d
commit 823d9f5d7f

View file

@ -174,12 +174,15 @@ if(APPLE)
endif()
set_target_properties(zmusic zmusiclite PROPERTIES
PUBLIC_HEADER ../include/zmusic.h
VERSION ${ZMUSIC_VERSION}
SOVERSION ${ZMUSIC_VERSION_MAJOR}
)
install(TARGETS zmusic zmusiclite LIBRARY DESTINATION lib)
install(DIRECTORY ../include/ DESTINATION include FILES_MATCHING PATTERN "*.h*")
install(TARGETS zmusic zmusiclite
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
source_group("MIDI Devices" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/mididevices/.+")
source_group("MIDI Sources" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/midisources/.+")