Add find_package to QtAwesome

This commit is contained in:
Martin Delille 2023-01-31 07:02:23 +01:00
parent 005a0fa310
commit ab15dd67d7
No known key found for this signature in database
GPG Key ID: C073D887B6E32DE5

View File

@ -1,6 +1,13 @@
cmake_minimum_required(VERSION 3.16)
project(QtAwesome)
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)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(QtAwesome