mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2025-12-16 19:57:03 +03:00
Refines .gitignore to globally ignore build directories and corrects the CMake add_subdirectory path. Support to Qt6.9 Ensures proper icon rendering by including qtypes and converting the FontAwesome codepoint to QChar.
21 lines
412 B
CMake
21 lines
412 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)
|
|
|
|
add_executable(QtAwesomeSample
|
|
mainwindow.cpp
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(QtAwesomeSample
|
|
PUBLIC QtAwesome
|
|
)
|