From 53e1cff7bd3928cbfefb017bc3b6d970b06a4ee3 Mon Sep 17 00:00:00 2001 From: Olivier Le Doeuff Date: Sat, 17 Jul 2021 14:20:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Use=20standard=20CMAKE=5FINSTALL?= =?UTF-8?q?=5FINCLUDEDIR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit instead of `include` in INSTALL_INTERFACE --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a690fc..1a07f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,8 @@ if(QOLM_MAIN_PROJECT) set_property(GLOBAL PROPERTY USE_FOLDERS ON) endif() +include(GNUInstallDirs) + # ───── CONFIG ───── if(QOLM_VERBOSE) @@ -144,7 +146,7 @@ add_library(${QOLM_TARGET}::${QOLM_TARGET} ALIAS ${QOLM_TARGET}) target_include_directories(${QOLM_TARGET} PUBLIC $ - $ + $ ) target_compile_features(${QOLM_TARGET} PUBLIC cxx_std_17) target_link_libraries(${QOLM_TARGET} PUBLIC Qt::Core Qt::Qml) @@ -178,7 +180,6 @@ endif() # ───── INSTALLATION ───── if(QOLM_ENABLE_INSTALL) - include(GNUInstallDirs) install(TARGETS ${QOLM_TARGET} EXPORT ${QOLM_TARGET}Targets) foreach(HDR_FILE ${QOLM_HDRS})