mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
QtAutogen tests: Rename rcconly target to camel case rccOnly.
Also add dedicated rccOnlyRes.qrc file for the rccOnly target.
This commit is contained in:
@@ -44,10 +44,10 @@ else()
|
|||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# -- RCC only
|
# -- Test: RCC only
|
||||||
add_executable(rcconly rcconly.cpp second_resource.qrc)
|
add_executable(rccOnly rccOnly.cpp rccOnlyRes.qrc)
|
||||||
set_property(TARGET rcconly PROPERTY AUTORCC ON)
|
set_property(TARGET rccOnly PROPERTY AUTORCC ON)
|
||||||
target_link_libraries(rcconly ${QT_QTCORE_TARGET})
|
target_link_libraries(rccOnly ${QT_QTCORE_TARGET})
|
||||||
|
|
||||||
# -- RCC empty
|
# -- RCC empty
|
||||||
add_executable(rcc_empty rcc_empty.cpp rcc_empty_resource.qrc)
|
add_executable(rcc_empty rcc_empty.cpp rcc_empty_resource.qrc)
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
extern int qInitResources_second_resource();
|
extern int qInitResources_rccOnlyRes();
|
||||||
|
|
||||||
int main(int, char**)
|
int main(int, char**)
|
||||||
{
|
{
|
||||||
// Fails to link if the symbol is not present.
|
// Fails to link if the symbol is not present.
|
||||||
qInitResources_second_resource();
|
qInitResources_rccOnlyRes();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
5
Tests/QtAutogen/rccOnlyRes.qrc
Normal file
5
Tests/QtAutogen/rccOnlyRes.qrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<!DOCTYPE RCC><RCC version="1.0">
|
||||||
|
<qresource>
|
||||||
|
<file>rccOnly.cpp</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
Reference in New Issue
Block a user