Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Okteta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
Okteta
Commits
b4a2c507
Commit
b4a2c507
authored
Jan 29, 2015
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use co-installable qca-qt5 version
REVIEW: 122034 Thanks heirecka@exherbo.org for the patch
parent
b54cbcd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
66 deletions
+9
-66
CMakeLists.txt
CMakeLists.txt
+3
-3
cmake/modules/FindQCA2.cmake
cmake/modules/FindQCA2.cmake
+0
-53
kasten/controllers/CMakeLists.txt
kasten/controllers/CMakeLists.txt
+6
-10
No files found.
CMakeLists.txt
View file @
b4a2c507
...
...
@@ -55,9 +55,9 @@ if( UNIX )
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -std=c++0x -fno-rtti"
)
endif
()
find_package
(
Q
CA2
2.1.0
)
set_package_properties
(
Q
CA2
PROPERTIES DESCRIPTION
"Qt Cryptographic Architecture"
URL
"http
s://projects.kde.org/projects/kdesupport/qca
"
TYPE OPTIONAL
find_package
(
Q
ca-qt5
2.1.0
)
set_package_properties
(
Q
ca-qt5
PROPERTIES DESCRIPTION
"Qt Cryptographic Architecture"
URL
"http
:/download.kde.org/stable/qca-qt5
"
TYPE OPTIONAL
PURPOSE
"Needed for most of the algorithms of the checksum tool"
)
# control build scope
...
...
cmake/modules/FindQCA2.cmake
deleted
100644 → 0
View file @
b54cbcd7
# - Try to find QCA2 (Qt Cryptography Architecture 2)
# Once done this will define
#
# QCA2_FOUND - system has QCA2
# QCA2_INCLUDE_DIR - the QCA2 include directory
# QCA2_LIBRARIES - the libraries needed to use QCA2
# QCA2_DEFINITIONS - Compiler switches required for using QCA2
#
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
# Copyright (c) 2006, Michael Larouche, <michael.larouche@kdemail.net>
# Copyright (c) 2014, Friedrich W. H. Kossebau, <kossebau@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if
(
NOT WIN32
)
find_package
(
PkgConfig QUIET
)
pkg_check_modules
(
PC_QCA2 QUIET qca2
)
set
(
QCA2_DEFINITIONS
${
PC_QCA2_CFLAGS_OTHER
}
)
endif
(
NOT WIN32
)
find_library
(
QCA2_LIBRARIES
WIN32_DEBUG_POSTFIX d
NAMES qca
HINTS
${
PC_QCA2_LIBDIR
}
${
PC_QCA2_LIBRARY_DIRS
}
)
find_path
(
QCA2_INCLUDE_DIR QtCrypto
HINTS
${
PC_QCA2_INCLUDEDIR
}
${
PC_QCA2_INCLUDE_DIRS
}
PATH_SUFFIXES QtCrypto
)
find_file
(
QCA2_VERSION_FILE
QtCrypto/qca_version.h
HINTS
${
QCA2_INCLUDE_DIR
}
)
if
(
QCA2_VERSION_FILE
)
file
(
READ
${
QCA2_VERSION_FILE
}
QCA2_VERSION_CONTENT
)
string
(
REGEX MATCH
"QCA_VERSION_STR
\"
.*
\"\n
"
QCA2_VERSION_MATCH
"
${
QCA2_VERSION_CONTENT
}
"
)
if
(
QCA2_VERSION_MATCH
)
string
(
REGEX REPLACE
"QCA_VERSION_STR
\"
(.*)
\"\n
"
"
\\
1"
QCA2_VERSION
${
QCA2_VERSION_MATCH
}
)
endif
(
QCA2_VERSION_MATCH
)
endif
(
QCA2_VERSION_FILE
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
QCA2 REQUIRED_VARS QCA2_LIBRARIES QCA2_INCLUDE_DIR
VERSION_VAR QCA2_VERSION
)
mark_as_advanced
(
QCA2_INCLUDE_DIR QCA2_LIBRARIES
)
kasten/controllers/CMakeLists.txt
View file @
b4a2c507
...
...
@@ -32,11 +32,7 @@ include_directories(
${
OKTETA_REL_DIR
}
/core
)
if
(
QCA2_FOUND
)
include_directories
(
${
QCA2_INCLUDE_DIR
}
)
endif
(
QCA2_FOUND
)
set
(
HAVE_QCA2
${
QCA2_FOUND
}
)
set
(
HAVE_QCA2
${
Qca-qt5_FOUND
}
)
configure_file
(
config-qca2.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config-qca2.h
)
set
(
DOCUMENTINFOCONTROLLER_SRCS
...
...
@@ -72,11 +68,11 @@ set( STRINGSEXTRACTCONTROLLER_SRCS
view/stringsextract/stringsextracttoolviewfactory.cpp
)
if
(
Q
CA2
_FOUND
)
if
(
Q
ca-qt5
_FOUND
)
set
(
QCA2CHECKSUM_SRCS
view/libbytearraychecksum/algorithm/qca2bytearraychecksumalgorithm.cpp
)
endif
(
Q
CA2
_FOUND
)
endif
(
Q
ca-qt5
_FOUND
)
set
(
LIBCHECKSUM_SRCS
view/libbytearraychecksum/abstractbytearraychecksumalgorithm.cpp
...
...
@@ -535,9 +531,9 @@ target_link_libraries( ${oktetakastencontrollers_LIB}
Qt5::PrintSupport
Qt5::Script
)
if
(
Q
CA2
_FOUND
)
target_link_libraries
(
${
oktetakastencontrollers_LIB
}
${
QCA2_LIBRARIES
}
)
endif
(
Q
CA2
_FOUND
)
if
(
Q
ca-qt5
_FOUND
)
target_link_libraries
(
${
oktetakastencontrollers_LIB
}
qca-qt5
)
endif
(
Q
ca-qt5
_FOUND
)
set_target_properties
(
${
oktetakastencontrollers_LIB
}
PROPERTIES
OUTPUT_NAME
${
oktetakastencontrollers_LIB_NAME
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment