From 5241ebcea61b13fa93c1fecbe2e324183e2f42a0 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 24 Apr 2024 11:25:34 +0800 Subject: [PATCH] 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 Reviewed-by: Lucie Gerard (cherry picked from commit 7a62c962383b6a069c6955f57173a0f1001c4461) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtBuildRepoHelpers.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/QtBuildRepoHelpers.cmake b/cmake/QtBuildRepoHelpers.cmake index 1015f42cf47..bc4ea075b6a 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()