Meta: Copy GML source files to serenity install
We already install C++ source files to allow debugging applications in HackStudio. Installing GML files can make editing application widgets a bit faster and easier, as you no longer need to copy files to the system. :^)
This commit is contained in:
parent
8dcfb6bfbd
commit
5035378b03
Notes:
sideshowbarker
2024-07-17 01:27:18 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/5035378b03 Pull-request: https://github.com/SerenityOS/serenity/pull/18747 Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ function(serenity_install_sources)
|
|||
# https://cmake.org/cmake/help/v3.23/command/cmake_path.html#relative-path
|
||||
string(LENGTH ${SerenityOS_SOURCE_DIR} root_source_dir_length)
|
||||
string(SUBSTRING ${CMAKE_CURRENT_SOURCE_DIR} ${root_source_dir_length} -1 current_source_dir_relative)
|
||||
file(GLOB_RECURSE sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h" "*.cpp")
|
||||
file(GLOB_RECURSE sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h" "*.cpp" "*.gml")
|
||||
foreach(source ${sources})
|
||||
get_filename_component(subdirectory ${source} DIRECTORY)
|
||||
install(FILES ${source} DESTINATION usr/src/serenity/${current_source_dir_relative}/${subdirectory} OPTIONAL)
|
||||
|
|
Loading…
Add table
Reference in a new issue