Skip to content

Commit bd5bc59

Browse files
author
Sebastiano Merlino
committed
Added cmakemodule to support inclusion in cmake installers
1 parent 29e3f1a commit bd5bc59

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# - Find Crypto++
2+
3+
if(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
4+
set(LIBHTTPSERVER_FOUND TRUE)
5+
6+
else(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
7+
find_path(LIBHTTPSERVER_INCLUDE_DIRS httpserverpp
8+
/usr/include
9+
/usr/include/httpserver
10+
/usr/local/include/
11+
/usr/local/include/httpserver
12+
)
13+
14+
find_library(LIBHTTPSERVER_LIBRARIES NAMES httpserver
15+
PATHS
16+
/usr/lib
17+
/usr/local/lib
18+
/opt/local/lib
19+
)
20+
21+
if(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
22+
set(LIBHTTPSERVER_FOUND TRUE)
23+
message(STATUS "Found libhttpserver: ${LIBHTTPSERVER_INCLUDE_DIRS}, ${LIBHTTPSERVER_LIBRARIES}")
24+
else(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
25+
set(LIBHTTPSERVER_FOUND FALSE)
26+
message(STATUS "libhttpserver not found.")
27+
endif(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)
28+
29+
mark_as_advanced(LIBHTTPSERVER_INCLUDE_DIRS LIBHTTPSERVER_LIBRARIES)
30+
31+
endif(LIBHTTPSERVER_INCLUDE_DIRS AND LIBHTTPSERVER_LIBRARIES)

0 commit comments

Comments
 (0)