set(HEADERS abstractguidededitormodel.h flowlayout.h guidededitorelement.h guidededitorelementview.h guidededitorlayer.h guidededitorview.h mainwindow.h ) set(SOURCES abstractguidededitormodel.cpp flowlayout.cpp guidededitorelement.cpp guidededitorelementview.cpp guidededitorlayer.cpp guidededitorview.cpp mainwindow.cpp ) add_library(src ${HEADERS} ${SOURCES}) qt5_use_modules(src Widgets)