mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
CMake: Add custom target to build only the generated sources
This is needed so all headers and files exist on disk, so that the sonar cloud analyzer can find them when executing the compilation commands contained in compile_commands.json, without actually building. Co-authored-by: Andrew Kaster <akaster@serenityos.org>
This commit is contained in:
parent
779cf49f38
commit
619200774b
6 changed files with 32 additions and 0 deletions
|
@ -24,6 +24,7 @@ function(serenity_generated_sources target_name)
|
|||
foreach(generated ${GENERATED_SOURCES})
|
||||
get_filename_component(generated_name ${generated} NAME)
|
||||
add_dependencies(${target_name} generate_${generated_name})
|
||||
add_dependencies(all_generated generate_${generated_name})
|
||||
endforeach()
|
||||
endif()
|
||||
endfunction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue