summaryrefslogtreecommitdiffstats
path: root/cmake/FindCommoncpp.cmake
blob: 8a83e29e4df169ecdad790b0d9c815f9b6c5e292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FIND_PATH(COMMONCPP_INCLUDE_DIR commoncpp/config.h)
FIND_LIBRARY(COMMONCPP_LIBRARIES NAMES commoncpp)

IF(COMMONCPP_INCLUDE_DIR AND COMMONCPP_LIBRARIES)
	SET(COMMONCPP_FOUND TRUE)
ENDIF(COMMONCPP_INCLUDE_DIR AND COMMONCPP_LIBRARIES)

IF(COMMONCPP_FOUND)
	IF (NOT Commoncpp_FIND_QUIETLY)
		MESSAGE(STATUS "Found commoncpp includes:	${COMMONCPP_INCLUDE_DIR}/commoncpp/config.h")
		MESSAGE(STATUS "Found commoncpp library:	${COMMONCPP_LIBRARIES}")
	ENDIF (NOT Commoncpp_FIND_QUIETLY)
ELSE(COMMONCPP_FOUND)
	IF (Commoncpp_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find commoncpp development files")
	ENDIF (Commoncpp_FIND_REQUIRED)
ENDIF(COMMONCPP_FOUND)