summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-04-24 11:25:34 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-04-24 14:06:37 +0000
commit5241ebcea61b13fa93c1fecbe2e324183e2f42a0 (patch)
tree21b6252b4bb4976807640ceeee0c2d332579e237 /cmake
parent3053c9b2a3c20515c906e471d6807cad3b2869ba (diff)
CMake: add licenseRule.json to IDE projects
Some repos have licenseRule.json files. Adding them to the IDE projects. Change-Id: I7fdc054d244d48e3343866775671d8f4f4c9390b Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> (cherry picked from commit 7a62c962383b6a069c6955f57173a0f1001c4461) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuildRepoHelpers.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/QtBuildRepoHelpers.cmake b/cmake/QtBuildRepoHelpers.cmake
index 1015f42cf4..bc4ea075b6 100644
--- a/cmake/QtBuildRepoHelpers.cmake
+++ b/cmake/QtBuildRepoHelpers.cmake
@@ -433,8 +433,11 @@ function(qt_internal_show_extra_ide_sources)
# licenses
set(licenses_target_name ${qt_repo_targets_name}_licenses)
file(GLOB licenses_files LIST_DIRECTORIES false LICENSES/*)
+ if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/licenseRule.json")
+ list(APPEND licenses_files "${CMAKE_CURRENT_SOURCE_DIR}/licenseRule.json")
+ endif()
if(licenses_files)
- source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSES" FILES ${licenses_files})
+ source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES ${licenses_files})
add_custom_target(${licenses_target_name} SOURCES ${licenses_files})
endif()