CMake: add licenseRule.json to IDE projects
Some repos have licenseRule.json files. Adding them to the IDE projects. Pick-to: 6.7 Change-Id: I7fdc054d244d48e3343866775671d8f4f4c9390b Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Lucie Gerard <lucie.gerard@qt.io>
This commit is contained in:
parent
e7362764d4
commit
7a62c96238
@ -434,8 +434,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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user