mirror of
https://github.com/reactos/CMake.git
synced 2025-01-31 17:12:49 +00: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:
parent
6eb654c06e
commit
59dbd3f891
@ -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)
|
||||
|
@ -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;
|
||||
}
|
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>
|
Loading…
x
Reference in New Issue
Block a user