mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 23:30:35 -06:00
Autogen: Tests: Separate RccOnly and RccEmpty tests
This commit is contained in:
@@ -59,18 +59,6 @@ if(NON_ASCII_BDIR AND WIN32)
|
||||
set(ALLOW_WRAP_CPP FALSE)
|
||||
endif()
|
||||
|
||||
# -- Test
|
||||
# RCC only
|
||||
add_executable(rccOnly rccOnly.cpp rccOnlyRes.qrc)
|
||||
set_property(TARGET rccOnly PROPERTY AUTORCC ON)
|
||||
target_link_libraries(rccOnly ${QT_QTCORE_TARGET})
|
||||
|
||||
# -- Test
|
||||
# RCC empty
|
||||
add_executable(rccEmpty rccEmpty.cpp rccEmptyRes.qrc)
|
||||
set_property(TARGET rccEmpty PROPERTY AUTORCC ON)
|
||||
target_link_libraries(rccEmpty ${QT_QTCORE_TARGET})
|
||||
|
||||
# -- Test
|
||||
# Add not_generated_file.qrc to the source list to get the file-level
|
||||
# dependency, but don't generate a c++ file from it. Disable the AUTORCC
|
||||
|
||||
@@ -4,3 +4,5 @@ ADD_AUTOGEN_TEST(MocOptions mocOptions)
|
||||
if(QT_TEST_ALLOW_QT_MACROS)
|
||||
ADD_AUTOGEN_TEST(UicOnly uicOnly)
|
||||
endif()
|
||||
ADD_AUTOGEN_TEST(RccOnly rccOnly)
|
||||
ADD_AUTOGEN_TEST(RccEmpty rccEmpty)
|
||||
|
||||
8
Tests/QtAutogen/RccEmpty/CMakeLists.txt
Normal file
8
Tests/QtAutogen/RccEmpty/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(RccEmpty)
|
||||
include("../AutogenTest.cmake")
|
||||
|
||||
# Test AUTORCC on a .qrc file with no resource files
|
||||
add_executable(rccEmpty rccEmpty.cpp rccEmptyRes.qrc)
|
||||
set_property(TARGET rccEmpty PROPERTY AUTORCC ON)
|
||||
target_link_libraries(rccEmpty ${QT_QTCORE_TARGET})
|
||||
8
Tests/QtAutogen/RccOnly/CMakeLists.txt
Normal file
8
Tests/QtAutogen/RccOnly/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(RccOnly)
|
||||
include("../AutogenTest.cmake")
|
||||
|
||||
# Test AUTORCC being enabled only
|
||||
add_executable(rccOnly rccOnly.cpp rccOnlyRes.qrc)
|
||||
set_property(TARGET rccOnly PROPERTY AUTORCC ON)
|
||||
target_link_libraries(rccOnly ${QT_QTCORE_TARGET})
|
||||
Reference in New Issue
Block a user