mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Add debug qrc version when running RelWithDebInfo
This is so we browser qrc files in QtCreator project tree
This commit is contained in:
parent
31d49e8b40
commit
1d11f6970c
@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.17 )
|
|||||||
|
|
||||||
project(ScreenPlay LANGUAGES CXX)
|
project(ScreenPlay LANGUAGES CXX)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_AUTORCC ON)
|
set(CMAKE_AUTORCC ON)
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
||||||
@ -70,10 +73,8 @@ set(l10n
|
|||||||
set_source_files_properties(${l10n} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/translations")
|
set_source_files_properties(${l10n} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/translations")
|
||||||
qt5_add_translation(qmFiles ${l10n})
|
qt5_add_translation(qmFiles ${l10n})
|
||||||
|
|
||||||
# For development purposes to display source files in QtCreator
|
|
||||||
#qt5_add_resources(qml qml.qrc resources.qrc)
|
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
||||||
qt5_add_resources(qml qml.qrc resources.qrc)
|
qt5_add_resources(qml qml.qrc resources.qrc)
|
||||||
else()
|
else()
|
||||||
qtquick_compiler_add_resources(qml qml.qrc resources.qrc)
|
qtquick_compiler_add_resources(qml qml.qrc resources.qrc)
|
||||||
|
@ -45,10 +45,8 @@ set( src
|
|||||||
set( headers
|
set( headers
|
||||||
src/basewindow.h)
|
src/basewindow.h)
|
||||||
|
|
||||||
# For development purposes to display source files in QtCreator
|
|
||||||
#qt5_add_resources(resources SPWResources.qrc)
|
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
||||||
set(resources SPWResources.qrc)
|
set(resources SPWResources.qrc)
|
||||||
else()
|
else()
|
||||||
qtquick_compiler_add_resources(resources SPWResources.qrc )
|
qtquick_compiler_add_resources(resources SPWResources.qrc )
|
||||||
|
@ -20,7 +20,7 @@ set(src main.cpp
|
|||||||
set(headers
|
set(headers
|
||||||
src/widgetwindow.h)
|
src/widgetwindow.h)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
||||||
set(resources SPWidgetResources.qrc)
|
set(resources SPWidgetResources.qrc)
|
||||||
else()
|
else()
|
||||||
qtquick_compiler_add_resources(resources SPWidgetResources.qrc )
|
qtquick_compiler_add_resources(resources SPWidgetResources.qrc )
|
||||||
|
Loading…
Reference in New Issue
Block a user