You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
488 B
20 lines
488 B
3 months ago
|
cmake_minimum_required(VERSION 3.10)
|
||
|
|
||
|
project(UicIncrementalBuild LANGUAGES CXX)
|
||
|
|
||
|
find_package(Qt${with_qt_version} REQUIRED COMPONENTS Core Widgets Gui)
|
||
|
|
||
|
set(CMAKE_AUTOMOC ON)
|
||
|
set(CMAKE_AUTOUIC ON)
|
||
|
|
||
|
add_executable(example
|
||
2 months ago
|
main.cpp
|
||
|
ui/widget.cpp
|
||
|
ui/widget.h
|
||
|
ui/widget.ui
|
||
3 months ago
|
)
|
||
|
|
||
|
target_link_libraries(example PRIVATE Qt${with_qt_version}::Widgets
|
||
|
Qt${with_qt_version}::Core
|
||
|
Qt${with_qt_version}::Gui)
|