mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2024-11-15 05:25:43 +08:00
21 lines
421 B
CMake
21 lines
421 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(QtAwesomeSample)
|
|
|
|
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
|
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Widgets)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
add_subdirectory(../QtAwesome QtAwesome)
|
|
|
|
add_executable(QtAwesomeSample
|
|
mainwindow.cpp
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(QtAwesomeSample
|
|
PUBLIC QtAwesome
|
|
)
|