cmake_minimum_required(VERSION 3.16) project(CalibratorLauncher VERSION 1.0.0 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Network) set(PROJECT_SOURCES main.cpp mainwindow.cpp mainwindow.h widgets/launcherpage.cpp widgets/launcherpage.h widgets/appicon.cpp widgets/appicon.h widgets/statusbar.cpp widgets/statusbar.h widgets/devicestatuswidget.cpp widgets/devicestatuswidget.h widgets/dockbar.cpp widgets/dockbar.h widgets/pageindicator.cpp widgets/pageindicator.h utils/configmanager.cpp utils/configmanager.h utils/stylehelper.cpp utils/stylehelper.h resources.qrc ) qt_add_executable(CalibratorLauncher MANUAL_FINALIZATION ${PROJECT_SOURCES} ) target_link_libraries(CalibratorLauncher PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Network ) set_target_properties(CalibratorLauncher PROPERTIES MACOSX_BUNDLE TRUE WIN32_EXECUTABLE TRUE ) install(TARGETS CalibratorLauncher BUNDLE DESTINATION . LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) qt_finalize_executable(CalibratorLauncher)