From 763de789b0ac8cfbfc49d47e587f6446b36fb6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Tue, 5 Feb 2019 00:07:39 +0000 Subject: [PATCH] add FreeRTOS sodium support -> pip_crypt git-svn-id: svn://db.shs.com.ru/pip@684 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c39afb9d..c1418853 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -459,6 +459,13 @@ if (NOT PIP_FREERTOS) add_executable(pip_test "main.cpp") target_link_libraries(pip_test pip) +else(NOT PIP_FREERTOS) + message(STATUS "Building PIP with crypt support") + add_definitions(-DPIP_CRYPT) + add_library(pip_crypt ${PIP_LIB_TYPE} ${CPP_LIB_CRYPT}) + target_link_libraries(pip_crypt pip ${sodium_FOUND}) + list(APPEND LIBS_STATUS sodium) + list(APPEND PIP_LIBS_TARGETS pip_crypt) endif(NOT PIP_FREERTOS) # Install