qt-migration-copilot-demo/pipeline/head There was a failure building this commit
Entire-Checkpoint: c1ee98dc34a3
40 lines
835 B
CMake
40 lines
835 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(Qt6MigratedBenchmark LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
|
|
|
qt_standard_project_setup(REQUIRES 6.5)
|
|
|
|
add_executable(Qt6MigratedBenchmark
|
|
main.cpp
|
|
MainWindow.h
|
|
MainWindow.cpp
|
|
MainWindow.ui
|
|
resources.qrc
|
|
)
|
|
|
|
target_link_libraries(Qt6MigratedBenchmark PRIVATE
|
|
Qt6::Core
|
|
Qt6::Gui
|
|
Qt6::Widgets
|
|
)
|
|
|
|
target_compile_features(Qt6MigratedBenchmark PRIVATE cxx_std_23)
|
|
|
|
# Enable warnings
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
|
target_compile_options(Qt6MigratedBenchmark PRIVATE -Wall -Wextra -pedantic)
|
|
endif()
|
|
|
|
# Add tests
|
|
enable_testing()
|
|
add_subdirectory(tests) |