From d1aea038b08db11d5f12132b2842aba5fff8dd5a Mon Sep 17 00:00:00 2001 From: Malfurious Date: Mon, 21 Oct 2024 13:27:32 -0400 Subject: Add Mbedtls library I'm planning to start rewriting compass in C, so I've been looking for a portable C-oriented crypto library to replace Crypto++. This commit adds version 3.6.0 of mbedtls to the build. Mbedtls is available under the Apache license. Signed-off-by: Malfurious --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f59811..e0fd0a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,10 @@ cmake_minimum_required(VERSION 3.0) -project(compass CXX) +project(compass LANGUAGES CXX) + +set(ENABLE_PROGRAMS OFF CACHE BOOL "Build mbedtls exemplary programs") +set(ENABLE_TESTING OFF CACHE BOOL "Build mbedtls testing harness") +add_subdirectory(mbedtls) +include_directories(mbedtls/include) add_executable(compass main.cpp @@ -11,4 +16,6 @@ add_executable(compass Socket.cpp ) +target_link_libraries(compass mbedtls) + install(TARGETS compass) -- cgit v1.2.3