Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
135a263f
Commit
135a263f
authored
9 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add openssl
parent
9ba1fe55
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SuperBuild/CMake/External_curl.cmake
+3
-0
3 additions, 0 deletions
SuperBuild/CMake/External_curl.cmake
SuperBuild/CMake/External_openssl.cmake
+58
-0
58 additions, 0 deletions
SuperBuild/CMake/External_openssl.cmake
SuperBuild/CMakeLists.txt
+5
-0
5 additions, 0 deletions
SuperBuild/CMakeLists.txt
with
66 additions
and
0 deletions
SuperBuild/CMake/External_curl.cmake
+
3
−
0
View file @
135a263f
...
@@ -15,6 +15,9 @@ else()
...
@@ -15,6 +15,9 @@ else()
# declare dependencies
# declare dependencies
set
(
${
proj
}
_DEPENDENCIES ZLIB
)
set
(
${
proj
}
_DEPENDENCIES ZLIB
)
if
(
NOT USE_SYSTEM_OPENSSL
)
list
(
APPEND
${
proj
}
_DEPENDENCIES OPENSSL
)
endif
()
INCLUDE_SUPERBUILD_DEPENDENCIES
(
${${
proj
}
_DEPENDENCIES
}
)
INCLUDE_SUPERBUILD_DEPENDENCIES
(
${${
proj
}
_DEPENDENCIES
}
)
# set proj back to its original value
# set proj back to its original value
set
(
proj CURL
)
set
(
proj CURL
)
...
...
This diff is collapsed.
Click to expand it.
SuperBuild/CMake/External_openssl.cmake
0 → 100644
+
58
−
0
View file @
135a263f
set
(
proj OPENSSL
)
if
(
NOT __EXTERNAL_
${
proj
}
__
)
set
(
__EXTERNAL_
${
proj
}
__ 1
)
message
(
STATUS
"Setup OpenSSL ..."
)
if
(
USE_SYSTEM_OPENSSL
)
find_package
(
OPENSSL
)
add_custom_target
(
${
proj
}
)
message
(
STATUS
" Using OpenSSL system version"
)
else
()
SETUP_SUPERBUILD
(
PROJECT
${
proj
}
)
message
(
STATUS
" Using OpenSSL SuperBuild version"
)
# declare dependencies
set
(
${
proj
}
_DEPENDENCIES ZLIB
)
INCLUDE_SUPERBUILD_DEPENDENCIES
(
${${
proj
}
_DEPENDENCIES
}
)
# set proj back to its original value
set
(
proj OPENSSL
)
set
(
OPENSSL_BUILD_ARCH
"linux-x32"
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
OPENSSL_BUILD_ARCH
"linux-x86_64"
)
endif
()
if
(
MSVC
)
message
(
FATAL_ERROR
"No build rules added yet."
)
else
(
UNIX
)
ExternalProject_Add
(
${
proj
}
PREFIX
${
proj
}
DEPENDS
${${
proj
}
_DEPENDENCIES
}
URL
"http://openssl.org/source/openssl-1.0.2c.tar.gz"
URL_MD5 8c8d81a9ae7005276e486702edbcd4b6
BINARY_DIR
${
OPENSSL_SB_BUILD_DIR
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
PATCH_COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
OPENSSL_SB_SRC
}
${
OPENSSL_SB_BUILD_DIR
}
CONFIGURE_COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
OPENSSL_SB_BUILD_DIR
}
./Configure
${
OPENSSL_BUILD_ARCH
}
--prefix=
${
SB_INSTALL_PREFIX
}
shared zlib zlib-dynamic -I
${
SB_INSTALL_PREFIX
}
/include -L
${
SB_INSTALL_PREFIX
}
/lib
BUILD_COMMAND $
(
MAKE
)
INSTALL_COMMAND $
(
MAKE
)
install
)
endif
()
set
(
_SB_
${
proj
}
_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
if
(
WIN32
)
message
(
FATAL_ERROR
"No build rules added yet."
)
elseif
(
UNIX
)
set
(
_SB_
${
proj
}
_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/libssl
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
endif
()
endif
()
This diff is collapsed.
Click to expand it.
SuperBuild/CMakeLists.txt
+
5
−
0
View file @
135a263f
...
@@ -102,6 +102,11 @@ SETUP_SYSTEM_LIBRARY(PROJECT OPENJPEG DEFAULT OFF)
...
@@ -102,6 +102,11 @@ SETUP_SYSTEM_LIBRARY(PROJECT OPENJPEG DEFAULT OFF)
SETUP_SYSTEM_LIBRARY
(
PROJECT BOOST DEFAULT ON
)
SETUP_SYSTEM_LIBRARY
(
PROJECT BOOST DEFAULT ON
)
SETUP_SYSTEM_LIBRARY
(
PROJECT LIBKML DEFAULT OFF
)
SETUP_SYSTEM_LIBRARY
(
PROJECT LIBKML DEFAULT OFF
)
SETUP_SYSTEM_LIBRARY
(
PROJECT CURL DEFAULT ON
)
SETUP_SYSTEM_LIBRARY
(
PROJECT CURL DEFAULT ON
)
if
(
WIN32
)
SETUP_SYSTEM_LIBRARY
(
PROJECT OPENSSL DEFAULT OFF
)
else
()
SETUP_SYSTEM_LIBRARY
(
PROJECT OPENSSL DEFAULT ON
)
endif
()
SETUP_SYSTEM_LIBRARY
(
PROJECT GDAL DEFAULT OFF
)
SETUP_SYSTEM_LIBRARY
(
PROJECT GDAL DEFAULT OFF
)
SETUP_SYSTEM_LIBRARY
(
PROJECT FFTW DEFAULT OFF
)
SETUP_SYSTEM_LIBRARY
(
PROJECT FFTW DEFAULT OFF
)
SETUP_SYSTEM_LIBRARY
(
PROJECT ITK DEFAULT OFF
)
SETUP_SYSTEM_LIBRARY
(
PROJECT ITK DEFAULT OFF
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment