From 55f2219ab98b039f256671c5e584a61ab52bfed0 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Thu, 30 Jan 2020 10:44:19 +0100 Subject: [HICN-489] Add iOS support to hicn stack Signed-off-by: Angelo Mantellini Change-Id: I8fa8c4eaa3218eb4be46f713b15ab789c6930aa0 --- apps/higet/CMakeLists.txt | 18 ++++++++++-------- apps/http-proxy/CMakeLists.txt | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) (limited to 'apps') diff --git a/apps/higet/CMakeLists.txt b/apps/higet/CMakeLists.txt index 76814384d..1cf14c287 100644 --- a/apps/higet/CMakeLists.txt +++ b/apps/higet/CMakeLists.txt @@ -31,11 +31,13 @@ list(APPEND APPS_SRC higet.cc ) -build_executable(${HIGET} - SOURCES ${APPS_SRC} - LINK_LIBRARIES ${LIBTRANSPORT_LIBRARIES} ${WSOCK32_LIBRARY} ${WS2_32_LIBRARY} - DEPENDS ${LIBTRANSPORT_LIBRARIES} - COMPONENT ${HICN_APPS} - DEFINITIONS ${COMPILER_DEFINITIONS} - LINK_FLAGS ${LINK_FLAGS} -) +if (NOT DISABLE_EXECUTABLES) + build_executable(${HIGET} + SOURCES ${APPS_SRC} + LINK_LIBRARIES ${LIBTRANSPORT_LIBRARIES} ${WSOCK32_LIBRARY} ${WS2_32_LIBRARY} + DEPENDS ${LIBTRANSPORT_LIBRARIES} + COMPONENT ${HICN_APPS} + DEFINITIONS ${COMPILER_DEFINITIONS} + LINK_FLAGS ${LINK_FLAGS} + ) +endif () diff --git a/apps/http-proxy/CMakeLists.txt b/apps/http-proxy/CMakeLists.txt index cc47e4b6f..94bf895c1 100644 --- a/apps/http-proxy/CMakeLists.txt +++ b/apps/http-proxy/CMakeLists.txt @@ -58,11 +58,13 @@ build_library(${LIBHTTP_PROXY} LINK_FLAGS ${LINK_FLAGS} ) -build_executable(${HTTP_PROXY} - SOURCES ${APP_SOURCE_FILES} - LINK_LIBRARIES ${LIBHTTP_PROXY_STATIC} - DEPENDS ${LIBHTTP_PROXY_STATIC} - COMPONENT ${HICN_APPS} - DEFINITIONS ${COMPILER_DEFINITIONS} - LINK_FLAGS ${LINK_FLAGS} -) +if (NOT DISABLE_EXECUTABLES) + build_executable(${HTTP_PROXY} + SOURCES ${APP_SOURCE_FILES} + LINK_LIBRARIES ${LIBHTTP_PROXY_STATIC} + DEPENDS ${LIBHTTP_PROXY_STATIC} + COMPONENT ${HICN_APPS} + DEFINITIONS ${COMPILER_DEFINITIONS} + LINK_FLAGS ${LINK_FLAGS} + ) +endif () -- cgit 1.2.3-korg