scope private/public headers when embedding into other projects
thanks to Cameron Palmer
This commit is contained in:
parent
9b4044d8ed
commit
4fcfc82d83
@ -1,12 +1,5 @@
|
||||
if(BUILD_NC)
|
||||
|
||||
include_directories(
|
||||
.
|
||||
./compat
|
||||
../../include
|
||||
../../include/compat
|
||||
)
|
||||
|
||||
set(
|
||||
NC_SRC
|
||||
atomicio.c
|
||||
@ -50,6 +43,7 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(nc ${NC_SRC})
|
||||
target_include_directories(nc PRIVATE . ./compat)
|
||||
target_link_libraries(nc tls ${OPENSSL_LIBS})
|
||||
|
||||
if(ENABLE_NC)
|
||||
|
@ -1,12 +1,5 @@
|
||||
if(NOT MSVC)
|
||||
|
||||
include_directories(
|
||||
.
|
||||
./compat
|
||||
../../include
|
||||
../../include/compat
|
||||
)
|
||||
|
||||
set(
|
||||
OCSPCHECK_SRC
|
||||
http.c
|
||||
@ -27,6 +20,7 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(ocspcheck ${OCSPCHECK_SRC})
|
||||
target_include_directories(ocspcheck PRIVATE . ./compat)
|
||||
target_link_libraries(ocspcheck tls ${OPENSSL_LIBS})
|
||||
|
||||
if(ENABLE_LIBRESSL_INSTALL)
|
||||
|
@ -1,9 +1,3 @@
|
||||
include_directories(
|
||||
.
|
||||
../../include
|
||||
../../include/compat
|
||||
)
|
||||
|
||||
set(
|
||||
OPENSSL_SRC
|
||||
apps.c
|
||||
@ -74,6 +68,7 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(openssl ${OPENSSL_SRC})
|
||||
target_include_directories(openssl PRIVATE .)
|
||||
target_link_libraries(openssl ${OPENSSL_LIBS})
|
||||
|
||||
if(ENABLE_LIBRESSL_INSTALL)
|
||||
|
@ -1,14 +1,3 @@
|
||||
include_directories(
|
||||
.
|
||||
../include
|
||||
../include/compat
|
||||
asn1
|
||||
bn
|
||||
dsa
|
||||
evp
|
||||
modes
|
||||
)
|
||||
|
||||
if(HOST_ASM_ELF_X86_64)
|
||||
set(
|
||||
ASM_X86_64_ELF_SRC
|
||||
@ -810,6 +799,18 @@ if(EXTRA_EXPORT)
|
||||
endif()
|
||||
|
||||
add_library(crypto ${CRYPTO_SRC})
|
||||
target_include_directories(crypto
|
||||
PRIVATE
|
||||
.
|
||||
asn1
|
||||
bn
|
||||
dsa
|
||||
evp
|
||||
modes
|
||||
PUBLIC
|
||||
../include
|
||||
../include/compat)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym)
|
||||
if (WIN32)
|
||||
|
@ -1,9 +1,3 @@
|
||||
include_directories(
|
||||
.
|
||||
../include
|
||||
../include/compat
|
||||
)
|
||||
|
||||
set(
|
||||
SSL_SRC
|
||||
bio_ssl.c
|
||||
@ -48,6 +42,13 @@ set(
|
||||
)
|
||||
|
||||
add_library(ssl ${SSL_SRC})
|
||||
target_include_directories(ssl
|
||||
PRIVATE
|
||||
.
|
||||
PUBLIC
|
||||
../include
|
||||
../include/compat)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym)
|
||||
target_link_libraries(ssl crypto)
|
||||
|
@ -1,7 +1,5 @@
|
||||
include_directories(
|
||||
.
|
||||
../include
|
||||
../include/compat
|
||||
../crypto/modes
|
||||
../crypto/asn1
|
||||
../ssl
|
||||
|
@ -1,9 +1,3 @@
|
||||
include_directories(
|
||||
.
|
||||
../include
|
||||
../include/compat
|
||||
)
|
||||
|
||||
set(
|
||||
TLS_SRC
|
||||
tls.c
|
||||
@ -37,6 +31,13 @@ else()
|
||||
endif()
|
||||
|
||||
add_library(tls ${TLS_SRC})
|
||||
target_include_directories(tls
|
||||
PRIVATE
|
||||
.
|
||||
PUBLIC
|
||||
../include
|
||||
../include/compat)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym)
|
||||
target_link_libraries(tls ssl crypto)
|
||||
|
Loading…
x
Reference in New Issue
Block a user