From ab15dd67d7c69fc9d2e24d942eba6ea2db3ddafe Mon Sep 17 00:00:00 2001 From: Martin Delille Date: Tue, 31 Jan 2023 07:02:23 +0100 Subject: [PATCH] Add find_package to QtAwesome --- QtAwesome/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/QtAwesome/CMakeLists.txt b/QtAwesome/CMakeLists.txt index f2f6445..154a1ca 100644 --- a/QtAwesome/CMakeLists.txt +++ b/QtAwesome/CMakeLists.txt @@ -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