aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-04 10:37:24 +0300
committerBrent Cook <busterb@gmail.com>2023-07-04 10:37:24 +0300
commit71ce0b8c3e07079a40011d2f3515969e3bdf302e (patch)
tree78aae3da0c893e54f2c65240f4dc3cbc317d739c /apps
parentb16ad4dbd4143aa27e89744a635ebd7d48697af4 (diff)
downloadportable-71ce0b8c3e07079a40011d2f3515969e3bdf302e.tar.gz
portable-71ce0b8c3e07079a40011d2f3515969e3bdf302e.tar.bz2
portable-71ce0b8c3e07079a40011d2f3515969e3bdf302e.zip
generate opensslconf.h in build dir for cmake
Diffstat (limited to 'apps')
-rw-r--r--apps/nc/CMakeLists.txt10
-rw-r--r--apps/ocspcheck/CMakeLists.txt12
-rw-r--r--apps/openssl/CMakeLists.txt17
3 files changed, 27 insertions, 12 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt
index bd59211..ffd68e5 100644
--- a/apps/nc/CMakeLists.txt
+++ b/apps/nc/CMakeLists.txt
@@ -36,8 +36,14 @@ else()
36endif() 36endif()
37 37
38add_executable(nc ${NC_SRC}) 38add_executable(nc ${NC_SRC})
39target_include_directories(nc PUBLIC ../../include) 39target_include_directories(nc
40target_include_directories(nc PRIVATE . ./compat ../../include/compat) 40 PRIVATE
41 .
42 ./compat
43 ../../include/compat
44 PUBLIC
45 ../../include
46 ${CMAKE_BINARY_DIR}/include)
41target_link_libraries(nc ${LIBTLS_LIBS}) 47target_link_libraries(nc ${LIBTLS_LIBS})
42 48
43if(ENABLE_NC) 49if(ENABLE_NC)
diff --git a/apps/ocspcheck/CMakeLists.txt b/apps/ocspcheck/CMakeLists.txt
index 2dddb6e..43eebdf 100644
--- a/apps/ocspcheck/CMakeLists.txt
+++ b/apps/ocspcheck/CMakeLists.txt
@@ -8,9 +8,9 @@ set(
8 8
9check_function_exists(memmem HAVE_MEMMEM) 9check_function_exists(memmem HAVE_MEMMEM)
10if(HAVE_MEMMEM) 10if(HAVE_MEMMEM)
11 add_definitions(-DHAVE_MEMMEM) 11 add_definitions(-DHAVE_MEMMEM)
12else() 12else()
13 set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c) 13 set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/memmem.c)
14endif() 14endif()
15 15
16if(NOT "${OPENSSLDIR}" STREQUAL "") 16if(NOT "${OPENSSLDIR}" STREQUAL "")
@@ -20,8 +20,12 @@ else()
20endif() 20endif()
21 21
22add_executable(ocspcheck ${OCSPCHECK_SRC}) 22add_executable(ocspcheck ${OCSPCHECK_SRC})
23target_include_directories(ocspcheck PUBLIC ../../include) 23target_include_directories(ocspcheck
24target_include_directories(ocspcheck PRIVATE . ./compat ../../include/compat) 24 PRIVATE
25 ../../include/compat
26 PUBLIC
27 ../../include
28 ${CMAKE_BINARY_DIR}/include)
25target_link_libraries(ocspcheck tls ${OPENSSL_LIBS}) 29target_link_libraries(ocspcheck tls ${OPENSSL_LIBS})
26 30
27if(ENABLE_LIBRESSL_INSTALL) 31if(ENABLE_LIBRESSL_INSTALL)
diff --git a/apps/openssl/CMakeLists.txt b/apps/openssl/CMakeLists.txt
index 437c0db..efea217 100644
--- a/apps/openssl/CMakeLists.txt
+++ b/apps/openssl/CMakeLists.txt
@@ -61,15 +61,20 @@ if(WIN32)
61endif() 61endif()
62 62
63if(CMAKE_SYSTEM_NAME MATCHES "Darwin") 63if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
64 check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) 64 check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
65 if(NOT HAVE_CLOCK_GETTIME) 65 if(NOT HAVE_CLOCK_GETTIME)
66 set(OPENSSL_SRC ${OPENSSL_SRC} compat/clock_gettime_osx.c) 66 set(OPENSSL_SRC ${OPENSSL_SRC} compat/clock_gettime_osx.c)
67 endif() 67 endif()
68endif() 68endif()
69 69
70add_executable(openssl ${OPENSSL_SRC}) 70add_executable(openssl ${OPENSSL_SRC})
71target_include_directories(openssl PUBLIC ../../include) 71target_include_directories(openssl
72target_include_directories(openssl PRIVATE . ../../include/compat) 72 PRIVATE
73 .
74 ../../include/compat
75 PUBLIC
76 ../../include
77 ${CMAKE_BINARY_DIR}/include)
73target_link_libraries(openssl ${OPENSSL_LIBS}) 78target_link_libraries(openssl ${OPENSSL_LIBS})
74 79
75if(ENABLE_LIBRESSL_INSTALL) 80if(ENABLE_LIBRESSL_INSTALL)