Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F26446269
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
View Options
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bdb6e95..d85f89e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,55 +1,57 @@
# Copyright (C) 2018 by Intevation GmbH <info@intevation.de>
#
# This file is Free Software under the GNU GPL (v>=2)
# and comes with ABSOLUTELY NO WARRANTY!
# See LICENSE.txt for details.
cmake_minimum_required(VERSION 2.8.8)
project(gpg4win-tools)
set(PRETTY_NAME cryp.do)
### Generic Setup
set(KF5_VERSION "5.43.0")
set(GPGME_REQUIRED_VERSION "1.13.1")
set(QT_REQUIRED_VERSION "5.6.0")
set(LIBKLEO_VERSION "5.17.44")
#Old qtmain linking behavior to be compatible with cmake versions < 2.8.11
if(POLICY CMP0020)
cmake_policy(SET CMP0020 OLD)
endif()
+set(QT_MAJOR_VERSION "5")
+
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets)
find_package(Gpgmepp ${GPGME_REQUIRED_VERSION} CONFIG REQUIRED)
find_package(QGpgme ${GPGME_REQUIRED_VERSION} CONFIG REQUIRED)
find_package(KF5Libkleo ${LIBKLEO_VERSION} CONFIG REQUIRED)
find_package(KF5WidgetsAddons ${KF5_VERSION} CONFIG REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0600) # Windows vista
add_definitions(-DWINVER=0x0600)
add_definitions(-DUNICODE -D_UNICODE)
add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions
endif(WIN32)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Cmake does not correctly identify gcc windres when cross compiling
# making this line neccessary to set the correct flags for it.
# See: http://public.kitware.com/Bug/view.php?id=11773
SET(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -Ocoff <SOURCE> <OBJECT>")
#add_subdirectory(img)
### Include the actual source directories
add_subdirectory(src)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jul 17, 12:50 AM (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
93/86/c55997f2f3ab71f94fb681dbec23
Attached To
rGTO Gpg4win-Tools
Event Timeline
Log In to Comment