1 Install headers to a custom location to permit slotting with Qt4 version.
3 diff --git a/CMakeLists.txt b/CMakeLists.txt
4 index 1324566..f98d5da 100644
7 @@ -100,7 +100,7 @@ set (LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (eg. '6
8 set( LIB_INSTALL_DIR lib${LIB_SUFFIX} )
9 set( PLUGIN_INSTALL_DIR ${LIB_INSTALL_DIR}/grantlee/${Grantlee5_MAJOR_MINOR_VERSION_STRING} )
10 set( BIN_INSTALL_DIR bin )
11 -set( INCLUDE_INSTALL_DIR include )
12 +set( INCLUDE_INSTALL_DIR include/grantlee5 )
13 set( DATA_INSTALL_DIR share/apps )
15 # set up RPATH/install_name_dir
16 diff --git a/templates/lib/CMakeLists.txt b/templates/lib/CMakeLists.txt
17 index dad2ef8..434d163 100644
18 --- a/templates/lib/CMakeLists.txt
19 +++ b/templates/lib/CMakeLists.txt
20 @@ -107,6 +107,7 @@ if (Qt5Script_FOUND)
22 target_sources(Grantlee_Templates PRIVATE ${scriptabletags_SRCS})
23 target_include_directories(Grantlee_Templates PRIVATE ../scriptabletags)
24 + target_include_directories(Grantlee_Templates INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>")
25 target_link_libraries(Grantlee_Templates
26 LINK_PRIVATE Qt5::Script
28 diff --git a/textdocument/lib/CMakeLists.txt b/textdocument/lib/CMakeLists.txt
29 index 557d262..d2dbaa1 100644
30 --- a/textdocument/lib/CMakeLists.txt
31 +++ b/textdocument/lib/CMakeLists.txt
32 @@ -42,6 +42,7 @@ if (CMAKE_GENERATOR MATCHES "Visual Studio")
36 +target_include_directories(Grantlee_TextDocument INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>")
38 target_link_libraries(Grantlee_TextDocument