• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Find the CUnit headers and libraries
2#
3#  CUNIT_INCLUDE_DIRS - The CUnit include directory (directory where CUnit/CUnit.h was found)
4#  CUNIT_LIBRARIES    - The libraries needed to use CUnit
5#  CUNIT_FOUND        - True if CUnit found in system
6
7
8FIND_PATH(CUNIT_INCLUDE_DIR NAMES CUnit/CUnit.h)
9MARK_AS_ADVANCED(CUNIT_INCLUDE_DIR)
10
11FIND_LIBRARY(CUNIT_LIBRARY NAMES
12    cunit
13    libcunit
14    cunitlib
15)
16MARK_AS_ADVANCED(CUNIT_LIBRARY)
17
18INCLUDE(FindPackageHandleStandardArgs)
19FIND_PACKAGE_HANDLE_STANDARD_ARGS(CUnit DEFAULT_MSG CUNIT_LIBRARY CUNIT_INCLUDE_DIR)
20
21IF(CUNIT_FOUND)
22  SET(CUNIT_LIBRARIES ${CUNIT_LIBRARY})
23  SET(CUNIT_INCLUDE_DIRS ${CUNIT_INCLUDE_DIR})
24ENDIF(CUNIT_FOUND)
25