diff options
author | Angelo Mantellini <angelo.mantellini@irt-systemx.fr> | 2018-03-21 14:16:02 +0100 |
---|---|---|
committer | Angelo Mantellini <angelo.mantellini@irt-systemx.fr> | 2018-03-21 20:46:00 +0100 |
commit | 5d308865d0783d0cd70f7453c77980835ac5648e (patch) | |
tree | aea91e7109a81669e5b19443296cf1dec6876532 /HttpServer/app/cmake/Modules/FindHttpServer.cmake | |
parent | e90a1ec7c82519127b63931a96535ad4bc31342d (diff) |
update android-sdk. Now it is possible to compile with clangandroid-sdk/master
Change-Id: I156aa48dd90467a2a7540eec11839c0111b13bd2
Signed-off-by: Angelo Mantellini <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'HttpServer/app/cmake/Modules/FindHttpServer.cmake')
-rw-r--r-- | HttpServer/app/cmake/Modules/FindHttpServer.cmake | 39 |
1 files changed, 39 insertions, 0 deletions
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) |