-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenWF_PlatformCheck.cmake
More file actions
executable file
·29 lines (24 loc) · 1.09 KB
/
OpenWF_PlatformCheck.cmake
File metadata and controls
executable file
·29 lines (24 loc) · 1.09 KB
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
#---------------------------------------------------
# OpenWF - check platform dependencies before build
#
IF (UNIX)
FIND_PATH(SDL_INC SDL.h /usr/include/SDL /usr/local/include/SDL)
IF (NOT SDL_INC)
MESSAGE(FATAL_ERROR "Cannot find SDL.h. Install SDL development package first. Aborted!")
ENDIF (NOT SDL_INC)
FIND_LIBRARY(SDL_LIB NAMES SDL PATH /usr/lib /usr/local/lib)
IF (NOT SDL_LIB)
MESSAGE(FATAL_ERROR "Cannot find libSDL library. Aborted!")
ENDIF (NOT SDL_LIB)
FIND_PATH(XML_INC xmlreader.h /usr/include/libxml
/usr/include/libxml2/libxml
/usr/local/include/libxml
/usr/local/include/libxml2/libxml)
IF (NOT XML_INC)
MESSAGE(FATAL_ERROR "Cannot find xmlreader.h. Install libxml2 development package first. Aborted!")
ENDIF (NOT XML_INC)
FIND_LIBRARY(XML_LIB NAMES xml2 PATH /usr/lib /usr/local/lib)
IF (NOT SDL_LIB)
MESSAGE(FATAL_ERROR "Cannot find libxml2 library. Aborted!")
ENDIF (NOT SDL_LIB)
ENDIF (UNIX)