set(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cxx)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_RCC_EXECUTABLE}
- ARGS -o ${outfile} ${infile}
+ ARGS -name ${outfilename} -o ${outfile} ${infile}
MAIN_DEPENDENCY ${infile} )
set(${outfiles} ${${outfiles}} ${outfile})
ENDFOREACH (it)
env['QT4_UICDECLFLAGS'] = CLVar('')
env['QT4_MOCFROMHFLAGS'] = CLVar('')
env['QT4_MOCFROMCXXFLAGS'] = CLVar('-i')
- env['QT4_QRCFLAGS'] = ''
+ env['QT4_QRCFLAGS'] = '-name Resources'
# suffixes/prefixes for the headers / sources to generate
env['QT4_MOCHPREFIX'] = ''
static void initializeResources()
{
- extern void qInitResources();
static bool initialized = false;
if (!initialized) {
- qInitResources();
+ Q_INIT_RESOURCE(Resources);
initialized = true;
}
}
echo "</qresource></RCC>" >> $@
Resources.cpp: Resources.qrc
- $(RCC4) $< -o $@
+ $(RCC4) $< -name Resources -o $@
######################### LIBRARIES #############################