bin_PROGRAMS = editor # You have two .cpp files you wrote, editor.cpp and another.cpp # Remember to include the name of the resource file with the .cpp extension. editor_SOURCES = \ editor.cc \ editorwindow.cc \ entityproperties.cc \ entitywidget.cc \ inistream.cc \ mainwindow.cc \ mapwidget.cc \ properties.cc \ sidebar.cc \ vector3f.cc \ zoneproperties.cc # You have one .h file, it's called editor.h. Therefore, here I list # its mocced name, moc_editor.cpp. nodist_editor_SOURCES = \ moc_editorwindow.cc \ moc_entitywidget.cc \ moc_mainwindow.cc \ moc_mapwidget.cc \ moc_sidebar.cc # This rule lets GNU make create any moc_*.cpp from the equivalent *.h moc_%.cc: %.h moc $< -o $@