mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
CMake: Install generated IPC headers under /usr/include in compile_ipc()
Generated IPC headers are now installed under /usr/include in the system's filesystem image.
This commit is contained in:
parent
fc10bc3cb2
commit
fe7d28e870
Notes:
sideshowbarker
2024-07-17 17:05:50 +09:00
Author: https://github.com/itamar8910
Commit: fe7d28e870
Pull-request: https://github.com/SerenityOS/serenity/pull/13135
Reviewed-by: https://github.com/ADKaster
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@ function(compile_ipc source output)
|
|||
get_filename_component(output_name ${output} NAME)
|
||||
add_custom_target(generate_${output_name} DEPENDS ${output})
|
||||
add_dependencies(all_generated generate_${output_name})
|
||||
|
||||
string(LENGTH ${SerenityOS_SOURCE_DIR} root_source_dir_length)
|
||||
string(SUBSTRING ${CMAKE_CURRENT_SOURCE_DIR} ${root_source_dir_length} -1 current_source_dir_relative)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION usr/include${current_source_dir_relative} OPTIONAL)
|
||||
endfunction()
|
||||
|
||||
function(generate_state_machine source header)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue