Lagom: Include all generated installed files on library targets

Do this with INSTALL_INTERFACE genex include directory rules. We should
really standardize where the generated headers *actually* get installed
to though.
This commit is contained in:
Andrew Kaster 2023-10-03 19:20:14 -06:00 committed by Andrew Kaster
parent efa5fb5c3a
commit 99ffc935ef
Notes: sideshowbarker 2024-07-17 08:25:15 +09:00

View file

@ -224,6 +224,12 @@ function(lagom_lib target_name fs_name)
if (NOT ${target_name} STREQUAL "LibCore")
target_link_libraries(${target_name} PRIVATE LibCore)
endif()
# FIXME: Clean these up so that we don't need so many include dirs
target_include_directories(${target_name} INTERFACE
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/Services>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/Userland/Libraries>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/Userland/Services>
)
install(
TARGETS ${target_name}
EXPORT LagomTargets