set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed set(CMAKE_AUTOMOC ON) # Create code from a list of Qt designer ui files set(CMAKE_AUTOUIC ON) # Find the QtWidgets library find_package(Qt5Widgets CONFIG REQUIRED) set(GUI_SOURCES kima2.cpp mainwindow.cpp mainwindow.ui sellerdialog.cpp sellerdialog.ui sellermodel.cpp pricedialog.cpp pricedialog.ui ) add_executable(kima2 ${GUI_SOURCES}) target_link_libraries(kima2 core Qt5::Widgets stdc++fs)