From 5d308865d0783d0cd70f7453c77980835ac5648e Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Wed, 21 Mar 2018 14:16:02 +0100 Subject: update android-sdk. Now it is possible to compile with clang Change-Id: I156aa48dd90467a2a7540eec11839c0111b13bd2 Signed-off-by: Angelo Mantellini --- HttpServer/app/cmake/Modules/FindHttpServer.cmake | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 HttpServer/app/cmake/Modules/FindHttpServer.cmake (limited to 'HttpServer/app/cmake/Modules/FindHttpServer.cmake') diff --git a/HttpServer/app/cmake/Modules/FindHttpServer.cmake b/HttpServer/app/cmake/Modules/FindHttpServer.cmake new file mode 100644 index 00000000..263353fa --- /dev/null +++ b/HttpServer/app/cmake/Modules/FindHttpServer.cmake @@ -0,0 +1,39 @@ +######################################## +# +# Find the HttpServer libraries and includes +# This module sets: +# LIB_HTTP_SERVER_FOUND: True if lib_http_server was found +# LIB_HTTP_SERVER_LIBRARY: The lib_http_server library +# LIB_HTTP_SERVER_LIBRARIES: The lib_http_server library and dependencies +# LIB_HTTP_SERVER_INCLUDE_DIR: The lib_http_server include dir +# + +set(LIBICN_HTTP_SERVER_SEARCH_PATH_LIST + ${HTTP_SERVER_HOME} + $ENV{HTTP_SERVER_HOME} + $ENV{CCNX_HOME} + $ENV{PARC_HOME} + $ENV{FOUNDATION_HOME} + /usr/local/http-server + /usr/local/ccnx + /usr/local/ccn + /usr/local + /opt + /usr + ) + +find_path(LIB_HTTP_SERVER_INCLUDE_DIR http-server/http_server.h + HINTS ${LIBICN_HTTP_SERVER_SEARCH_PATH_LIST} + PATH_SUFFIXES include + DOC "Find the http-server includes") + +find_library(LIB_HTTP_SERVER_LIBRARY NAMES httpserver + HINTS ${LIB_HTTP_SERVER_SEARCH_PATH_LIST} + PATH_SUFFIXES lib + DOC "Find the http-server libraries") + +set(LIB_HTTP_SERVER_LIBRARIES ${LIB_HTTP_SERVER_LIBRARY}) +set(LIB_HTTP_SERVER_INCLUDE_DIRS ${LIB_HTTP_SERVER_INCLUDE_DIR}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(lib_http_server DEFAULT_MSG LIB_HTTP_SERVER_LIBRARY LIB_HTTP_SERVER_INCLUDE_DIR) -- cgit 1.2.3-korg