-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFindCppUnit.cmake
More file actions
36 lines (29 loc) · 961 Bytes
/
FindCppUnit.cmake
File metadata and controls
36 lines (29 loc) · 961 Bytes
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
30
31
32
33
34
35
# Find the CppUnit includes and library
#
# This module defines
# CPPUNIT_INCLUDE_DIR, where to find cppunit include files, etc.
# CPPUNIT_LIBRARIES, the libraries to link against to use CppUnit.
# CPPUNIT_FOUND, If false, do not try to use CppUnit.
# also defined, but not for general use are
# CPPUNIT_LIBRARY, where to find the CppUnit library.
#MESSAGE("Searching for cppunit library ")
FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/TestCase.h
/home/erc/include
/usr/local/include
/usr/include
${MED_SOURCE_DIR}/../cppunit-1.12.0/include
${MED_SOURCE_DIR}/../../cppunit-1.12.0/include
)
FIND_LIBRARY(CPPUNIT_LIBRARY cppunitd
/home/erc/lib
/usr/local/lib
/usr/lib
${MED_SOURCE_DIR}/../cppunit-1.12.0/lib
${MED_SOURCE_DIR}/../../cppunit-1.12.0/lib
)
IF(CPPUNIT_INCLUDE_DIR)
IF(CPPUNIT_LIBRARY)
SET(CPPUNIT_FOUND "YES")
SET(CPPUNIT_LIBRARIES ${CPPUNIT_LIBRARY} ${CMAKE_DL_LIBS})
ENDIF(CPPUNIT_LIBRARY)
ENDIF(CPPUNIT_INCLUDE_DIR)