Files
QtAwesome/QtAwesomeSample/CMakeLists.txt
hupochun 87942a3063 Update build config and icon codepoint
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.
2025-05-08 21:50:00 +02:00

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
)