From c177556cc9b9fb0622426dcd9a5b80b2613ecc93 Mon Sep 17 00:00:00 2001 From: begasus Date: Fri, 24 Jun 2022 15:07:20 +0200 Subject: surgescript, fix install path for the headers diff --git a/CMakeLists.txt b/CMakeLists.txt index e65971e..65ba7d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,7 @@ option(WANT_STATIC "Build SurgeScript as a static library" ON) option(WANT_EXECUTABLE "Build the surgescript executable" ON) set(LIB_SUFFIX "" CACHE STRING "Suffix to append to 'lib' directories, e.g., '64'") # libs must be installed to "lib64" in some systems set(PKGCONFIG_PATH "lib${LIB_SUFFIX}/pkgconfig" CACHE PATH "Destination folder of the pkg-config (.pc) file") +set(INCLUDE_PATH "include" CACHE PATH "Destination for the header files") if(UNIX) set(METAINFO_PATH "share/metainfo" CACHE PATH "Destination folder of the metainfo file") set(ICON_PATH "share/pixmaps" CACHE PATH "Destination folder of the icon file") @@ -155,8 +156,8 @@ if(WANT_STATIC) endif() # Install headers -install(DIRECTORY src/ DESTINATION include FILES_MATCHING PATTERN "*.h") -install(DIRECTORY "${CMAKE_BINARY_DIR}/src/" DESTINATION include FILES_MATCHING PATTERN "*.h") +install(DIRECTORY src/ DESTINATION ${INCLUDE_PATH} FILES_MATCHING PATTERN "*.h") +install(DIRECTORY "${CMAKE_BINARY_DIR}/src/" DESTINATION ${INCLUDE_PATH} FILES_MATCHING PATTERN "*.h") # Build the executable if(WANT_EXECUTABLE) -- 2.36.1