aboutsummaryrefslogtreecommitdiff
path: root/cmake/NNGHelpers.cmake
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-01-27 14:22:36 -0800
committerGarrett D'Amore <garrett@damore.org>2024-01-27 16:55:14 -0800
commitf48959f1347d97a9bf4d5edb4eb0c46e4101d356 (patch)
treefc4ebd708026915db958c8c4167ab02bb2407cbf /cmake/NNGHelpers.cmake
parent2f90e27f0b64990b99df1f4afdd9ea82ff512e61 (diff)
downloadnng-f48959f1347d97a9bf4d5edb4eb0c46e4101d356.tar.gz
nng-f48959f1347d97a9bf4d5edb4eb0c46e4101d356.tar.bz2
nng-f48959f1347d97a9bf4d5edb4eb0c46e4101d356.zip
Mbed TLS CMake improvements.
Try to use the Mbed TLS cmake configuration data if present, and refactor our FindModule to adhere to the same basic API.
Diffstat (limited to 'cmake/NNGHelpers.cmake')
-rw-r--r--cmake/NNGHelpers.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/NNGHelpers.cmake b/cmake/NNGHelpers.cmake
index d97d800c..b2daa1dc 100644
--- a/cmake/NNGHelpers.cmake
+++ b/cmake/NNGHelpers.cmake
@@ -1,5 +1,5 @@
#
-# Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+# Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
#
# This software is supplied under the terms of the MIT License, a
# copy of which should be located in the distribution where this
@@ -55,6 +55,12 @@ function(nng_link_libraries)
target_link_libraries(nng_testing PRIVATE ${ARGN})
endfunction()
+function(nng_link_libraries_public)
+ target_link_libraries(nng PRIVATE ${ARGN})
+ target_link_libraries(nng_testing PRIVATE ${ARGN})
+endfunction()
+
+
# nng_include_directories adds include directories.
function(nng_include_directories)
target_include_directories(nng PRIVATE ${ARGN})