Scott E. Graves 3ff46723b8
Some checks failed
BlockStorage/repertory_osx/pipeline/head There was a failure building this commit
BlockStorage/repertory_windows/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good
initial commit
2022-03-05 00:30:50 -06:00

32 lines
1.0 KiB
CMake

# - Find LibHttpServer
if(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
set(LIBHTTPSERVER_FOUND TRUE)
else(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
find_path(LIBHTTPSERVER_INCLUDE_DIRS httpserverpp
/usr/include
/usr/include/httpserver
/usr/local/include/
/usr/local/include/httpserver
)
find_library(LIBHTTPSERVER_LIBRARIES NAMES httpserver
PATHS
/usr/lib
/usr/local/lib
/opt/local/lib
)
if(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
set(LIBHTTPSERVER_FOUND TRUE)
message(STATUS "Found libhttpserver: ${LIBHTTPSERVER_INCLUDE_DIRS}, ${LIBHTTPSERVER_LIBRARIES}")
else(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
set(LIBHTTPSERVER_FOUND FALSE)
message(STATUS "libhttpserver not found.")
endif(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
mark_as_advanced(LIBHTTPSERVER_INCLUDE_DIRS LIBHTTPSERVER_LIBRARIES)
endif(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)