diff options
| author | Brent Cook <bcook@openbsd.org> | 2018-05-29 05:44:34 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2018-05-29 05:46:54 -0500 |
| commit | 4fcfc82d83de32098530abfa3aff5d6fc5532433 (patch) | |
| tree | 449adaa04fdd66b065fb9ffd4f58912d398c03ca /crypto | |
| parent | 9b4044d8edce19f72649ba2960a54d57373b84b5 (diff) | |
| download | portable-4fcfc82d83de32098530abfa3aff5d6fc5532433.tar.gz portable-4fcfc82d83de32098530abfa3aff5d6fc5532433.tar.bz2 portable-4fcfc82d83de32098530abfa3aff5d6fc5532433.zip | |
scope private/public headers when embedding into other projects
thanks to Cameron Palmer
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/CMakeLists.txt | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 2fa08a5..ded07af 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
| @@ -1,14 +1,3 @@ | |||
| 1 | include_directories( | ||
| 2 | . | ||
| 3 | ../include | ||
| 4 | ../include/compat | ||
| 5 | asn1 | ||
| 6 | bn | ||
| 7 | dsa | ||
| 8 | evp | ||
| 9 | modes | ||
| 10 | ) | ||
| 11 | |||
| 12 | if(HOST_ASM_ELF_X86_64) | 1 | if(HOST_ASM_ELF_X86_64) |
| 13 | set( | 2 | set( |
| 14 | ASM_X86_64_ELF_SRC | 3 | ASM_X86_64_ELF_SRC |
| @@ -810,6 +799,18 @@ if(EXTRA_EXPORT) | |||
| 810 | endif() | 799 | endif() |
| 811 | 800 | ||
| 812 | add_library(crypto ${CRYPTO_SRC}) | 801 | add_library(crypto ${CRYPTO_SRC}) |
| 802 | target_include_directories(crypto | ||
| 803 | PRIVATE | ||
| 804 | . | ||
| 805 | asn1 | ||
| 806 | bn | ||
| 807 | dsa | ||
| 808 | evp | ||
| 809 | modes | ||
| 810 | PUBLIC | ||
| 811 | ../include | ||
| 812 | ../include/compat) | ||
| 813 | |||
| 813 | if (BUILD_SHARED_LIBS) | 814 | if (BUILD_SHARED_LIBS) |
| 814 | export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym) | 815 | export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym) |
| 815 | if (WIN32) | 816 | if (WIN32) |
