X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=inline;f=CMakeLists.txt;h=b801d0ab32754e13149a62778b206766fae8b9fd;hb=13dedf19c628b9967e4c4106ab0fd967f1df0b90;hp=ddff8df8ec7edd84f25150b0f5be7a1ab638f620;hpb=7432726bf8e4fc75cf96d330380448edc593bb2e;p=evaf
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ddff8df..b801d0a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,16 +1,23 @@
project(eVaf)
-cmake_minimum_required(VERSION 2.6.0)
+cmake_minimum_required(VERSION 3.1)
+set (CMAKE_CXX_STANDARD 11)
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)