File: FindCommoncpp.cmake

package info (click to toggle)
twinkle 1%3A1.10.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,100 kB
  • ctags: 7,063
  • sloc: cpp: 62,216; makefile: 17
file content (17 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (7)
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)