annotate Resources/CMake/OpenSslConfiguration.cmake @ 571:ec2c2411d4db laaw

versioning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Sep 2013 15:03:24 +0200
parents 6a3e2ca7a7a0
children d775a3cb5a06
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 if (${STATIC_BUILD})
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.0.1c)
411
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 407
diff changeset
3 DownloadPackage(
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 407
diff changeset
4 "ae412727c8c15b67880aef7bd2999b2e"
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 407
diff changeset
5 "www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/openssl-1.0.1c.tar.gz"
553
27d32fc6209a simplifications to cmake, use a digest of boost 1.54.0 thanks bcp
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
6 "${OPENSSL_SOURCES_DIR}")
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7
27
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
8 if (NOT EXISTS "${OPENSSL_SOURCES_DIR}/include/PATCHED")
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
9 if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
29
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
10 message("Patching the symbolic links")
27
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
11 # Patch the symbolic links by copying the files
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
12 file(GLOB headers "${OPENSSL_SOURCES_DIR}/include/openssl/*.h")
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
13 foreach(header ${headers})
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
14 message(${header})
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
15 file(READ "${header}" symbolicLink)
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
16 message(${symbolicLink})
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
17 configure_file("${OPENSSL_SOURCES_DIR}/include/openssl/${symbolicLink}" "${header}" COPYONLY)
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
18 endforeach()
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
19 file(WRITE "${OPENSSL_SOURCES_DIR}/include/PATCHED")
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
20 endif()
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
21 endif()
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
22
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 add_definitions(
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 -DOPENSSL_THREADS
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 -DOPENSSL_IA32_SSE2
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 -DOPENSSL_NO_ASM
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 -DOPENSSL_NO_DYNAMIC_ENGINE
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 -DNO_WINDOWS_BRAINDEATH
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 -DOPENSSL_NO_BF
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 -DOPENSSL_NO_CAMELLIA
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 -DOPENSSL_NO_CAST
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 -DOPENSSL_NO_EC
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 -DOPENSSL_NO_ECDH
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 -DOPENSSL_NO_ECDSA
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 -DOPENSSL_NO_EC_NISTP_64_GCC_128
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 -DOPENSSL_NO_GMP
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 -DOPENSSL_NO_GOST
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 -DOPENSSL_NO_HW
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 -DOPENSSL_NO_JPAKE
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 -DOPENSSL_NO_IDEA
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 -DOPENSSL_NO_KRB5
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 -DOPENSSL_NO_MD2
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 -DOPENSSL_NO_MDC2
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 -DOPENSSL_NO_MD4
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 -DOPENSSL_NO_RC2
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 -DOPENSSL_NO_RC4
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 -DOPENSSL_NO_RC5
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 -DOPENSSL_NO_RFC3779
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 -DOPENSSL_NO_SCTP
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 -DOPENSSL_NO_STORE
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 -DOPENSSL_NO_SEED
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 -DOPENSSL_NO_WHIRLPOOL
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 -DOPENSSL_NO_RIPEMD
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 )
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 include_directories(
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58 ${OPENSSL_SOURCES_DIR}
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 ${OPENSSL_SOURCES_DIR}/crypto
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 ${OPENSSL_SOURCES_DIR}/crypto/asn1
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 ${OPENSSL_SOURCES_DIR}/crypto/modes
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 ${OPENSSL_SOURCES_DIR}/crypto/evp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63 ${OPENSSL_SOURCES_DIR}/include
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 )
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66 set(OPENSSL_SOURCES_SUBDIRS
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 ${OPENSSL_SOURCES_DIR}/crypto
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 ${OPENSSL_SOURCES_DIR}/crypto/aes
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 ${OPENSSL_SOURCES_DIR}/crypto/asn1
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70 ${OPENSSL_SOURCES_DIR}/crypto/bio
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 ${OPENSSL_SOURCES_DIR}/crypto/bn
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 ${OPENSSL_SOURCES_DIR}/crypto/buffer
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 ${OPENSSL_SOURCES_DIR}/crypto/cmac
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 ${OPENSSL_SOURCES_DIR}/crypto/cms
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 ${OPENSSL_SOURCES_DIR}/crypto/comp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 ${OPENSSL_SOURCES_DIR}/crypto/conf
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 ${OPENSSL_SOURCES_DIR}/crypto/des
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 ${OPENSSL_SOURCES_DIR}/crypto/dh
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79 ${OPENSSL_SOURCES_DIR}/crypto/dsa
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 ${OPENSSL_SOURCES_DIR}/crypto/dso
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 ${OPENSSL_SOURCES_DIR}/crypto/engine
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 ${OPENSSL_SOURCES_DIR}/crypto/err
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83 ${OPENSSL_SOURCES_DIR}/crypto/evp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
84 ${OPENSSL_SOURCES_DIR}/crypto/hmac
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85 ${OPENSSL_SOURCES_DIR}/crypto/lhash
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 ${OPENSSL_SOURCES_DIR}/crypto/md5
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87 ${OPENSSL_SOURCES_DIR}/crypto/modes
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88 ${OPENSSL_SOURCES_DIR}/crypto/objects
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89 ${OPENSSL_SOURCES_DIR}/crypto/ocsp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90 ${OPENSSL_SOURCES_DIR}/crypto/pem
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 ${OPENSSL_SOURCES_DIR}/crypto/pkcs12
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93 ${OPENSSL_SOURCES_DIR}/crypto/pqueue
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94 ${OPENSSL_SOURCES_DIR}/crypto/rand
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95 ${OPENSSL_SOURCES_DIR}/crypto/rsa
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96 ${OPENSSL_SOURCES_DIR}/crypto/sha
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
97 ${OPENSSL_SOURCES_DIR}/crypto/srp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 ${OPENSSL_SOURCES_DIR}/crypto/stack
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99 ${OPENSSL_SOURCES_DIR}/crypto/ts
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 ${OPENSSL_SOURCES_DIR}/crypto/txt_db
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 ${OPENSSL_SOURCES_DIR}/crypto/ui
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 ${OPENSSL_SOURCES_DIR}/crypto/x509
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 ${OPENSSL_SOURCES_DIR}/crypto/x509v3
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104 ${OPENSSL_SOURCES_DIR}/ssl
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 )
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
107 foreach(d ${OPENSSL_SOURCES_SUBDIRS})
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108 AUX_SOURCE_DIRECTORY(${d} OPENSSL_SOURCES)
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 endforeach()
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111 list(REMOVE_ITEM OPENSSL_SOURCES
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_unix.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_vms.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win32.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_wince.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
117 ${OPENSSL_SOURCES_DIR}/crypto/armcap.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118 ${OPENSSL_SOURCES_DIR}/crypto/bf/bfs.cpp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119 ${OPENSSL_SOURCES_DIR}/crypto/bio/bss_rtcp.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
120 ${OPENSSL_SOURCES_DIR}/crypto/bn/exp.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
121 ${OPENSSL_SOURCES_DIR}/crypto/conf/cnf_save.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122 ${OPENSSL_SOURCES_DIR}/crypto/conf/test.c
65
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
123 ${OPENSSL_SOURCES_DIR}/crypto/des/des.c
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124 ${OPENSSL_SOURCES_DIR}/crypto/des/des3s.cpp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125 ${OPENSSL_SOURCES_DIR}/crypto/des/des_opts.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 ${OPENSSL_SOURCES_DIR}/crypto/des/dess.cpp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127 ${OPENSSL_SOURCES_DIR}/crypto/des/read_pwd.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
128 ${OPENSSL_SOURCES_DIR}/crypto/des/speed.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
129 ${OPENSSL_SOURCES_DIR}/crypto/evp/e_dsa.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130 ${OPENSSL_SOURCES_DIR}/crypto/evp/m_ripemd.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 ${OPENSSL_SOURCES_DIR}/crypto/lhash/lh_test.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
132 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5s.cpp
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
133 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/bio_ber.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
134 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/pk7_enc.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135 ${OPENSSL_SOURCES_DIR}/crypto/ppccap.c
27
cfe212a513c5 openssl with visual studio
Administrator@jodogne-w01
parents: 26
diff changeset
136 ${OPENSSL_SOURCES_DIR}/crypto/rand/randtest.c
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
137 ${OPENSSL_SOURCES_DIR}/crypto/s390xcap.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
138 ${OPENSSL_SOURCES_DIR}/crypto/sparcv9cap.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
139 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/tabtest.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
140 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3conf.c
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
141 ${OPENSSL_SOURCES_DIR}/ssl/ssl_task.c
65
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
142 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_nyi.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
143 ${OPENSSL_SOURCES_DIR}/crypto/aes/aes_x86core.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
144 ${OPENSSL_SOURCES_DIR}/crypto/bio/bss_dgram.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
145 ${OPENSSL_SOURCES_DIR}/crypto/bn/bntest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
146 ${OPENSSL_SOURCES_DIR}/crypto/bn/expspeed.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
147 ${OPENSSL_SOURCES_DIR}/crypto/bn/exptest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
148 ${OPENSSL_SOURCES_DIR}/crypto/engine/enginetest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
149 ${OPENSSL_SOURCES_DIR}/crypto/evp/evp_test.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
150 ${OPENSSL_SOURCES_DIR}/crypto/hmac/hmactest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
151 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
152 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5test.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
153 ${OPENSSL_SOURCES_DIR}/crypto/o_dir_test.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
154 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/dec.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
155 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/enc.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
156 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/sign.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
157 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/verify.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
158 ${OPENSSL_SOURCES_DIR}/crypto/rsa/rsa_test.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
159 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
160 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
161 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1t.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
162 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1test.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
163 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha256t.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
164 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha512t.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
165 ${OPENSSL_SOURCES_DIR}/crypto/sha/shatest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
166 ${OPENSSL_SOURCES_DIR}/crypto/srp/srptest.c
516
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
167
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
168 ${OPENSSL_SOURCES_DIR}/crypto/bn/divtest.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
169 ${OPENSSL_SOURCES_DIR}/crypto/bn/bnspeed.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
170 ${OPENSSL_SOURCES_DIR}/crypto/des/destest.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
171 ${OPENSSL_SOURCES_DIR}/crypto/dh/p192.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
172 ${OPENSSL_SOURCES_DIR}/crypto/dh/p512.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
173 ${OPENSSL_SOURCES_DIR}/crypto/dh/p1024.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
174 ${OPENSSL_SOURCES_DIR}/crypto/des/rpw.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
175 ${OPENSSL_SOURCES_DIR}/ssl/ssltest.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
176 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsagen.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
177 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsatest.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
178 ${OPENSSL_SOURCES_DIR}/crypto/dh/dhtest.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
179 ${OPENSSL_SOURCES_DIR}/crypto/pqueue/pq_test.c
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
180 ${OPENSSL_SOURCES_DIR}/crypto/des/ncbc_enc.c
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
181 )
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
182
29
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
183 #if (${MSVC})
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
184 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
28
ef264c1e9ee5 fix msvc build
Administrator@jodogne-w01
parents: 27
diff changeset
185 set_source_files_properties(
ef264c1e9ee5 fix msvc build
Administrator@jodogne-w01
parents: 27
diff changeset
186 ${OPENSSL_SOURCES}
ef264c1e9ee5 fix msvc build
Administrator@jodogne-w01
parents: 27
diff changeset
187 PROPERTIES COMPILE_DEFINITIONS
ef264c1e9ee5 fix msvc build
Administrator@jodogne-w01
parents: 27
diff changeset
188 "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN")
566
6a3e2ca7a7a0 the client library compiles with LSB 4.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 558
diff changeset
189
6a3e2ca7a7a0 the client library compiles with LSB 4.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 558
diff changeset
190 elseif (${CMAKE_SYSTEM_VERSION} STREQUAL "LinuxStandardBase")
6a3e2ca7a7a0 the client library compiles with LSB 4.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 558
diff changeset
191 execute_process(
6a3e2ca7a7a0 the client library compiles with LSB 4.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 558
diff changeset
192 COMMAND patch ui_openssl.c ${CMAKE_SOURCE_DIR}/Resources/Patches/openssl-lsb.diff
6a3e2ca7a7a0 the client library compiles with LSB 4.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 558
diff changeset
193 WORKING_DIRECTORY ${OPENSSL_SOURCES_DIR}/crypto/ui
6a3e2ca7a7a0 the client library compiles with LSB 4.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 558
diff changeset
194 )
28
ef264c1e9ee5 fix msvc build
Administrator@jodogne-w01
parents: 27
diff changeset
195 endif()
ef264c1e9ee5 fix msvc build
Administrator@jodogne-w01
parents: 27
diff changeset
196
516
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
197 #add_library(OpenSSL STATIC ${OPENSSL_SOURCES})
49a1228d6fe7 building the dll from the main CMakeLists
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
198 #link_libraries(OpenSSL)
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
200 else()
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
201 include(FindOpenSSL)
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
203 if (NOT ${OPENSSL_FOUND})
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204 message(FATAL_ERROR "Unable to find OpenSSL")
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 endif()
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
206
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207 include_directories(${OPENSSL_INCLUDE_DIR})
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208 link_libraries(${OPENSSL_LIBRARIES})
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
209 endif()