Commit bcafc399 authored by Sebastian Holtermann's avatar Sebastian Holtermann Committed by Brad King
Browse files

QtAutogen: Add test for empty qrc file

parent 98b11f25
......@@ -44,10 +44,16 @@ else()
# -- RCC only
add_executable(rcconly rcconly.cpp second_resource.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})
add_definitions(-DFOO -DSomeDefine="Barx")
extern int qInitResources_rcc_empty_resource();
int main(int, char**)
// Fails to link if the symbol is not present.
return 0;
<!DOCTYPE RCC><RCC version="1.0">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment