Change-Id: I94e4c9e525016405abba90bbdbe58e7786ce5bc4
Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
qt5_wrap_cpp(moc_files myobject.h)
-add_executable(myobject myobject.cpp ${moc_files})
+qt5_add_resources(rcc_files "pass2.qrc")
+
+add_executable(myobject myobject.cpp ${moc_files} ${rcc_files})
target_link_libraries(myobject ${Qt5Core_LIBRARIES})
int main(int argc, char **argv)
{
MyObject myObject;
+ // Compile error if the resource file was not created.
+ Q_INIT_RESOURCE(pass2);
return 0;
}
--- /dev/null
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource prefix="/">
+ <file>resource_file.txt</file>
+</qresource>
+</RCC>
+
--- /dev/null
+Ken sent me.