Skip to content
Snippets Groups Projects
Commit 1298a206 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Improve the install include dir option

parent f7839b2b
Branches
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ include_guard ()
#]=======================================================================]
macro (ihta_add_library)
set (options)
set (oneValueArgs NAMESPACE NAME LIBRARY_TYPE INCLUDE_DIR IDE_FOLDER)
set (oneValueArgs NAMESPACE NAME LIBRARY_TYPE INCLUDE_DIR INSTALL_INCLUDE_DIR IDE_FOLDER)
set (multiValueArgs SOURCES)
cmake_parse_arguments (IHTA_ADD_LIB "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
......@@ -58,7 +58,7 @@ macro (ihta_add_library)
# Include Directory
target_include_directories (
${IHTA_ADD_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${IHTA_ADD_LIB_INCLUDE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${IHTA_ADD_LIB_NAME}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${IHTA_ADD_LIB_INSTALL_INCLUDE_DIR}>
)
# Required compiler features
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment