diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-11-23 13:19:49 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2021-05-02 14:27:57 +0900 |
commit | 9971b0820c72a7be267e562f6002439b06103b94 (patch) | |
tree | 829e45b4e5e5d43c78d978aa6965e47c7710fe35 /crypto | |
parent | 6f38fb483cf0bf0f4112b23d9971aa51917e1910 (diff) | |
download | portable-9971b0820c72a7be267e562f6002439b06103b94.tar.gz portable-9971b0820c72a7be267e562f6002439b06103b94.tar.bz2 portable-9971b0820c72a7be267e562f6002439b06103b94.zip |
Use object library for CMake
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/CMakeLists.txt | 18 |
1 files changed, 17 insertions, 1 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 | . |