aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2021-11-27 20:57:14 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2021-11-27 20:57:14 +0900
commit870a1ebbc20324c3276842c494756e219801a738 (patch)
treedee8c7a02f9289f7120af4361c77a29614cb6b15 /crypto
parent2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3 (diff)
downloadportable-870a1ebbc20324c3276842c494756e219801a738.tar.gz
portable-870a1ebbc20324c3276842c494756e219801a738.tar.bz2
portable-870a1ebbc20324c3276842c494756e219801a738.zip
Build static library for regression tests when shared build with CMake
Diffstat (limited to 'crypto')
-rw-r--r--crypto/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 5733746..62324a8 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -1028,3 +1028,25 @@ if(ENABLE_LIBRESSL_INSTALL)
1028 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} 1028 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1029 ) 1029 )
1030endif(ENABLE_LIBRESSL_INSTALL) 1030endif(ENABLE_LIBRESSL_INSTALL)
1031
1032# build static library for regression test
1033if(BUILD_SHARED_LIBS)
1034 add_library(crypto-static STATIC $<TARGET_OBJECTS:crypto_obj>)
1035 target_include_directories(crypto-static
1036 PRIVATE
1037 .
1038 asn1
1039 bn
1040 dsa
1041 ec
1042 ecdh
1043 ecdsa
1044 evp
1045 modes
1046 x509
1047 ../include/compat
1048 PUBLIC
1049 ../include)
1050 target_link_libraries(crypto-static ${PLATFORM_LIBS})
1051endif()
1052