From a1a8adec8a9eaa73a4e437a7cf38b4120bd7e4f7 Mon Sep 17 00:00:00 2001 From: univrsal Date: Sun, 12 Apr 2020 15:09:04 +0200 Subject: [PATCH] fixed new cmake qt policy --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 66c5038..52c2846 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.5) project(scrab) set(CMAKE_INCLUDE_CURRENT_DIR TRUE) @@ -8,7 +8,8 @@ set(CMAKE_AUTOUIC ON) if(MSVC) set(scrab_PLATFORM_DEPS - w32-pthreads) + w32-pthreads + Qt5::WinMain) endif() if(UNIX) @@ -19,6 +20,8 @@ if(APPLE) add_definitions(-DMAC_OS=1) endif() +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOUIC ON) find_package(Qt5Core REQUIRED) find_package(Qt5Widgets REQUIRED)