forked from qt-creator/qt-creator
CMakePM: Add source groups to auto-setup.cmake
The CMake "Resources" source group is being extended with "*.qrc *.svg *.gif *.ico *.webp" The "Forms" and "State charts" are taken from QMake and group "*.ui" and "*.scxml". Fixes: QTCREATORBUG-31308 Fixes: QTCREATORBUG-31312 Change-Id: Ie83c185769637f70731ef775cda16a61de708b20 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -7,6 +7,13 @@ foreach(qtcreator_var
|
||||
set(__just_reference_${qtcreator_var} ${${qtcreator_var}})
|
||||
endforeach()
|
||||
|
||||
option(QT_CREATOR_SOURCE_GROUPS "Qt Creator source groups extensions" ON)
|
||||
if (QT_CREATOR_SOURCE_GROUPS)
|
||||
source_group("Resources" REGULAR_EXPRESSION "\\.(pdf|plist|png|jpeg|jpg|storyboard|xcassets|qrc|svg|gif|ico|webp)$")
|
||||
source_group("Forms" REGULAR_EXPRESSION "\\.(ui)$")
|
||||
source_group("State charts" REGULAR_EXPRESSION "\\.(scxml)$")
|
||||
endif()
|
||||
|
||||
if (EXISTS "${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")
|
||||
include("${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user