QtAutogen tests: Rename rcc_empty target to camel case rccEmpty

This commit is contained in:
Sebastian Holtermann 2016-11-25 12:41:16 +01:00
parent 59dbd3f891
commit cb4bc19ae1
3 changed files with 6 additions and 7 deletions

View File

@ -49,13 +49,12 @@ 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)
set_property(TARGET rcc_empty PROPERTY AUTORCC ON)
target_link_libraries(rcc_empty ${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})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DFOO -DSomeDefine="Barx")
# enable relaxed mode so automoc can handle all the special cases:

View File

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