diff --git a/CMakeLists.txt b/CMakeLists.txt index fb78bfbf..724604d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,7 @@ set (LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (eg. '6 set( LIB_INSTALL_DIR lib${LIB_SUFFIX} ) set( PLUGIN_INSTALL_DIR ${LIB_INSTALL_DIR}/grantlee/${Grantlee5_MAJOR_MINOR_VERSION_STRING} ) set( BIN_INSTALL_DIR bin ) -set( INCLUDE_INSTALL_DIR include ) +set( INCLUDE_INSTALL_DIR include/Grantlee5 ) set( DATA_INSTALL_DIR share/apps ) # set up RPATH/install_name_dir diff --git a/templates/lib/CMakeLists.txt b/templates/lib/CMakeLists.txt index 741fe659..8daee376 100644 --- a/templates/lib/CMakeLists.txt +++ b/templates/lib/CMakeLists.txt @@ -81,6 +81,9 @@ if (Qt5Script_FOUND) target_sources(Grantlee_Templates PRIVATE ${scriptabletags_SRCS}) target_include_directories(Grantlee_Templates PRIVATE ../scriptabletags) + target_include_directories(Grantlee_Templates + INTERFACE "$" + ) target_link_libraries(Grantlee_Templates LINK_PRIVATE Qt5::Script ) diff --git a/textdocument/lib/CMakeLists.txt b/textdocument/lib/CMakeLists.txt index 4c94203b..76078950 100644 --- a/textdocument/lib/CMakeLists.txt +++ b/textdocument/lib/CMakeLists.txt @@ -25,6 +25,9 @@ generate_export_header(Grantlee_TextDocument) add_library(Grantlee::TextDocument ALIAS Grantlee_TextDocument) set_property(TARGET Grantlee_TextDocument PROPERTY EXPORT_NAME TextDocument) +target_include_directories(Grantlee_TextDocument + INTERFACE "$" +) target_link_libraries(Grantlee_TextDocument LINK_PUBLIC Qt5::Gui