diff options
-rw-r--r-- | crypto/CMakeLists.txt | 18 | ||||
-rw-r--r-- | ssl/CMakeLists.txt | 10 | ||||
-rw-r--r-- | tls/CMakeLists.txt | 10 |
3 files changed, 35 insertions, 3 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 7066cc8..46db626 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
@@ -968,7 +968,23 @@ if(EXTRA_EXPORT) | |||
968 | endforeach() | 968 | endforeach() |
969 | endif() | 969 | endif() |
970 | 970 | ||
971 | add_library(crypto ${CRYPTO_SRC}) | 971 | add_library(crypto_obj OBJECT ${CRYPTO_SRC}) |
972 | target_include_directories(crypto_obj | ||
973 | PRIVATE | ||
974 | . | ||
975 | asn1 | ||
976 | bn | ||
977 | dsa | ||
978 | ec | ||
979 | ecdh | ||
980 | ecdsa | ||
981 | evp | ||
982 | modes | ||
983 | ../include/compat | ||
984 | PUBLIC | ||
985 | ../include) | ||
986 | |||
987 | add_library(crypto $<TARGET_OBJECTS:crypto_obj>) | ||
972 | target_include_directories(crypto | 988 | target_include_directories(crypto |
973 | PRIVATE | 989 | PRIVATE |
974 | . | 990 | . |
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 8e09d26..36e1c07 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
@@ -52,7 +52,15 @@ set( | |||
52 | tls13_server.c | 52 | tls13_server.c |
53 | ) | 53 | ) |
54 | 54 | ||
55 | add_library(ssl ${SSL_SRC}) | 55 | add_library(ssl_obj OBJECT ${SSL_SRC}) |
56 | target_include_directories(ssl_obj | ||
57 | PRIVATE | ||
58 | . | ||
59 | ../include/compat | ||
60 | PUBLIC | ||
61 | ../include) | ||
62 | |||
63 | add_library(ssl $<TARGET_OBJECTS:ssl_obj>) | ||
56 | target_include_directories(ssl | 64 | target_include_directories(ssl |
57 | PRIVATE | 65 | PRIVATE |
58 | . | 66 | . |
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index f64b1c3..286d499 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt | |||
@@ -29,7 +29,15 @@ else() | |||
29 | add_definitions(-DTLS_DEFAULT_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") | 29 | add_definitions(-DTLS_DEFAULT_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") |
30 | endif() | 30 | endif() |
31 | 31 | ||
32 | add_library(tls ${TLS_SRC}) | 32 | add_library(tls_obj OBJECT ${TLS_SRC}) |
33 | target_include_directories(tls_obj | ||
34 | PRIVATE | ||
35 | . | ||
36 | ../include/compat | ||
37 | PUBLIC | ||
38 | ../include) | ||
39 | |||
40 | add_library(tls $<TARGET_OBJECTS:tls_obj>) | ||
33 | target_include_directories(tls | 41 | target_include_directories(tls |
34 | PRIVATE | 42 | PRIVATE |
35 | . | 43 | . |