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)