File: FindCPPUNIT.cmake

package info (click to toggle)
tagua 1.0~alpha2-15
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 8,028 kB
  • ctags: 7,178
  • sloc: cpp: 26,149; ansic: 13,039; makefile: 182; ruby: 87; sh: 39
file content (28 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (6)
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
# - Try to find the libcppunit libraries
# Once done this will define
#
# CPPUNIT_FOUND - system has libcppunit
# CPPUNIT_INCLUDE_DIR - the libcppunit include directory
# CPPUNIT_LIBRARIES - libcppunit library

FIND_PATH(CPPUNIT_INCLUDE_DIR Test.h PATHS /usr/include/cppunit /usr/local/include/cppunit )
FIND_LIBRARY(CPPUNIT_LIBRARIES NAMES cppunit PATHS /usr/lib /usr/local/lib )

# IF(CPPUNIT_INCLUDE_DIR)
#     message (STATUS "found cppunit include dir: ${CPPUNIT_INCLUDE_DIR}")
# ENDIF (CPPUNIT_INCLUDE_DIR)
# 
# IF(CPPUNIT_LIBRARIES)
#     message (STATUS "found cppunit libraries: ${CPPUNIT_LIBRARIES}")
# ENDIF (CPPUNIT_LIBRARIES)

IF(CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)
  SET(CPPUNIT_FOUND 1   )
  if(NOT CPPUNIT_FIND_QUIETLY)
   message(STATUS "Found cppunit: ${CPPUNIT_LIBRARIES}")
  endif(NOT CPPUNIT_FIND_QUIETLY)
ELSE(CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)
  SET(CPPUNIT_FOUND 0 CACHE BOOL "Not found cppunit library")
ENDIF(CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)

MARK_AS_ADVANCED(CPPUNIT_INCLUDE_DIR CPPUNIT_LIBRARIES)