X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=CMakeLists.txt;h=7fbcdd6783b5dd40b2c649e9d714c24f45547988;hb=a81a943bee20df3c7eb34bafb3e3fe878facfe4e;hp=ddff8df8ec7edd84f25150b0f5be7a1ab638f620;hpb=0957525838e501a4609a15b8d7a765da43362025;p=evaf
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ddff8df..7fbcdd6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,16 +1,22 @@
project(eVaf)
-cmake_minimum_required(VERSION 2.6.0)
+cmake_minimum_required(VERSION 2.8.9)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
+ cmake_policy(SET CMP0020 NEW)
endif(COMMAND cmake_policy)
+# Find Qt packages
+find_package(Qt5Core REQUIRED)
+find_package(Qt5Xml REQUIRED)
+find_package(Qt5Widgets)
+find_package(Qt5Sql)
+
# Include our own cmake modules
set(CMAKE_MODULE_PATH ${eVaf_SOURCE_DIR}/mk/cmake)
-# Find Qt4
-find_package(Qt4 4.6 REQUIRED)
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Default to the Debug build type if none is specified
IF(NOT CMAKE_BUILD_TYPE)