TEMPLATE = app SOURCES = main.cpp extratarget.commands = @echo extra target worked OK QMAKE_EXTRA_TARGETS += extratarget