QtAwesome/QtAwesomeSample/CMakeLists.txt

21 lines
421 B
CMake
Raw Permalink Normal View History

2023-01-26 17:19:50 +08:00
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)
2023-01-26 22:18:41 +08:00
add_executable(QtAwesomeSample
2023-01-26 22:11:12 +08:00
mainwindow.cpp
main.cpp
)
2023-01-26 17:19:50 +08:00
2023-01-26 22:18:41 +08:00
target_link_libraries(QtAwesomeSample
2023-01-26 17:19:50 +08:00
PUBLIC QtAwesome
)