From 823d9f5d7f7f2aacf8fe1754a60b2a7964a81083 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 30 May 2020 11:29:38 +0300 Subject: [PATCH] - removed hardcoded include and lib directories from install target This resolves #7 --- source/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 6fe8bde..731b388 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -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/.+")