1
0
Fork 0

Put resources to a separate source group.

This commit is contained in:
John Preston 2019-11-29 11:36:59 +03:00
parent 9e68adb866
commit 52eaa9cd61

View file

@ -38,8 +38,12 @@ function(nice_target_sources target_name src_loc list)
else() else()
message(FATAL_ERROR "Unknown sources scope for target ${target_name}") message(FATAL_ERROR "Unknown sources scope for target ${target_name}")
endif() endif()
if (${src_loc} MATCHES "/Resources$")
source_group(TREE ${src_loc} PREFIX Resources FILES ${full_name})
else()
source_group(TREE ${src_loc} PREFIX Sources FILES ${full_name}) source_group(TREE ${src_loc} PREFIX Sources FILES ${full_name})
endif() endif()
endif()
endforeach() endforeach()
if (NOT "${public_sources}" STREQUAL "") if (NOT "${public_sources}" STREQUAL "")