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:
parent
efa5fb5c3a
commit
99ffc935ef
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/99ffc935ef Pull-request: https://github.com/SerenityOS/serenity/pull/21318
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue