forked from m-lab/mbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindWeb100.cmake
39 lines (31 loc) · 1.14 KB
/
FindWeb100.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# - Find web100
# Find the Web100 includes and library
# http://www.web100.org/
#
# WEB100_INCLUDE_DIRS - Where to find web100.h, etc.
# WEB100_LIBRARIES - List of libraries when using web100.
# WEB100_LIBRARY_DIRS - List of paths to libraries when using web100.
# WEB100_FOUND - True if web100 found.
FIND_PATH(WEB100_INCLUDE_DIR NAMES web100/web100.h)
FIND_LIBRARY(WEB100_LIBRARY NAMES web100)
SET(WEB100_INCLUDE_DIRS ${WEB100_INCLUDE_DIR})
SET(WEB100_LIBRARIES ${WEB100_LIBRARY})
IF(WEB100_INCLUDE_DIRS)
MESSAGE(STATUS "Web100 include dirs set to ${WEB100_INCLUDE_DIRS}")
ELSE(WEB100_INCLUDE_DIRS)
MESSAGE(FATAL " Web100 include dirs cannot be found")
ENDIF(WEB100_INCLUDE_DIRS)
IF(WEB100_LIBRARIES)
MESSAGE(STATUS "Web100 library set to ${WEB100_LIBRARIES}")
ELSE(WEB100_LIBRARIES)
MESSAGE(FATAL " Web100 library cannot be found")
ENDIF(WEB100_LIBRARIES)
SET(CMAKE_REQUIRED_INCLUDES ${WEB100_INCLUDE_DIRS})
SET(CMAKE_REQUIRED_LIBRARIES ${WEB100_LIBRARIES})
IF(WEB100_INCLUDE_DIRS AND WEB100_LIBRARIES)
SET(WEB100_FOUND "YES")
ENDIF(WEB100_INCLUDE_DIRS AND WEB100_LIBRARIES)
MARK_AS_ADVANCED(
WEB100_LIBRARIES
WEB100_INCLUDE_DIRS
)