Skip to content

Commit

Permalink
fixed new cmake qt policy
Browse files Browse the repository at this point in the history
  • Loading branch information
univrsal committed Apr 12, 2020
1 parent d1ec035 commit a1a8ade
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.5)
project(scrab)

set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
Expand All @@ -8,7 +8,8 @@ set(CMAKE_AUTOUIC ON)

if(MSVC)
set(scrab_PLATFORM_DEPS
w32-pthreads)
w32-pthreads
Qt5::WinMain)
endif()

if(UNIX)
Expand All @@ -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)

Expand Down

0 comments on commit a1a8ade

Please sign in to comment.