1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) add_library(about aboutdialog.cpp aboutdialog.h aboutdialog.ui ) target_link_libraries(about Qt5::Widgets)