cmake qt5: no need for custom command if AUTOMOC?

This commit is contained in:
Philippe Teuwen 2020-04-18 20:14:18 +02:00
commit f94a98b9c6

View file

@ -232,12 +232,6 @@ if(NOT Qt5_FOUND)
endif(NOT Qt5_FOUND) endif(NOT Qt5_FOUND)
if (Qt5_FOUND) if (Qt5_FOUND)
message("Qt5 library found, building gui :)") message("Qt5 library found, building gui :)")
add_custom_command(OUTPUT src/proxguiqt.moc.cpp
COMMAND "$(MOC) -o src/proxguiqt.moc.cpp proxguiqt.h"
COMMENT "Creating src/proxguiqt.moc.cpp"
)
set (TARGET_SOURCES set (TARGET_SOURCES
src/proxgui.cpp src/proxgui.cpp
src/proxguiqt.cpp src/proxguiqt.cpp