Export interface include directories

This commit is contained in:
Kai Pastor
2023-08-01 09:07:39 +02:00
committed by akallabeth
parent afbe16c850
commit 5ecc011c13
13 changed files with 16 additions and 0 deletions

View File

@@ -162,6 +162,9 @@ endmacro(add_channel_client_subsystem)
macro(channel_install _targets _destination _export_target)
if (NOT BUILD_SHARED_LIBS)
foreach(_target_name IN ITEMS ${_targets})
target_include_directories(${_target_name} INTERFACE $<INSTALL_INTERFACE:include>)
endforeach()
install(TARGETS ${_targets} DESTINATION ${_destination} EXPORT ${_export_target})
endif()
endmacro(channel_install)