2024-08-27 22:13:54 +00:00
|
|
|
cmake_minimum_required(VERSION 3.20)
|
|
|
|
project(configurator)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
|
|
|
|
set(QT_VERSION 6 CACHE STRING "Major version of Qt to use (6 will work, anything else may or may not work)")
|
|
|
|
|
|
|
|
find_package(Qt${QT_VERSION} COMPONENTS Core Gui Widgets WebEngineWidgets REQUIRED)
|
|
|
|
add_subdirectory(dialogs)
|
2024-08-29 11:21:00 +00:00
|
|
|
add_subdirectory(lib)
|
2024-08-27 22:13:54 +00:00
|
|
|
add_executable(configurator main.cpp Configurator.cpp)
|
2024-08-29 11:21:00 +00:00
|
|
|
target_link_libraries(configurator Qt${QT_VERSION}::Core Qt${QT_VERSION}::Gui Qt${QT_VERSION}::Widgets Qt${QT_VERSION}::WebEngineWidgets Qt${QT_VERSION}::Network dialogs fed)
|
2024-08-27 22:13:54 +00:00
|
|
|
|
|
|
|
install(TARGETS configurator DESTINATION bin)
|