blob: f6d11a3d593d07e5850b18014711e6cf3303d8cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FIND_PATH(CONFIG++_INCLUDE_DIR libconfig.h++ /usr/include /usr/local/include)
FIND_LIBRARY(CONFIG++_LIBRARY NAMES config++ PATH /usr/lib /usr/local/lib)
IF (CONFIG++_INCLUDE_DIR AND CONFIG++_LIBRARY)
SET(CONFIG++_FOUND TRUE)
ENDIF ( CONFIG++_INCLUDE_DIR AND CONFIG++_LIBRARY)
IF (CONFIG++_FOUND)
IF (NOT CONFIG++_FIND_QUIETLY)
MESSAGE(STATUS "Found Config++: ${CONFIG++_LIBRARY}")
ENDIF (NOT CONFIG++_FIND_QUIETLY)
ELSE(CONFIG++_FOUND)
IF (Config++_FIND_REQUIRED)
IF(NOT CONFIG++_INCLUDE_DIR)
MESSAGE(FATAL_ERROR "Could not find LibConfig++ header file!")
ENDIF(NOT CONFIG++_INCLUDE_DIR)
IF(NOT CONFIG++_LIBRARY)
MESSAGE(FATAL_ERROR "Could not find LibConfig++ library file!")
ENDIF(NOT CONFIG++_LIBRARY)
ENDIF (Config++_FIND_REQUIRED)
ENDIF (CONFIG++_FOUND)
|