QtAutogen tests: Rename rcconly target to camel case rccOnly.

Also add dedicated rccOnlyRes.qrc file for the rccOnly target.
This commit is contained in:
Sebastian Holtermann 2016-11-25 12:28:02 +01:00
parent 6eb654c06e
commit 59dbd3f891
3 changed files with 11 additions and 6 deletions

View File

@ -44,10 +44,10 @@ else()
endif()
# -- RCC only
add_executable(rcconly rcconly.cpp second_resource.qrc)
set_property(TARGET rcconly PROPERTY AUTORCC ON)
target_link_libraries(rcconly ${QT_QTCORE_TARGET})
# -- Test: RCC only
add_executable(rccOnly rccOnly.cpp rccOnlyRes.qrc)
set_property(TARGET rccOnly PROPERTY AUTORCC ON)
target_link_libraries(rccOnly ${QT_QTCORE_TARGET})
# -- RCC empty
add_executable(rcc_empty rcc_empty.cpp rcc_empty_resource.qrc)

View File

@ -1,9 +1,9 @@
extern int qInitResources_second_resource();
extern int qInitResources_rccOnlyRes();
int main(int, char**)
{
// Fails to link if the symbol is not present.
qInitResources_second_resource();
qInitResources_rccOnlyRes();
return 0;
}

View File

@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>rccOnly.cpp</file>
</qresource>
</RCC>