1# CUNIT_INCLUDE_DIRS - where to find <CUnit/CUnit.h>, etc.
2# CUNIT_LIBRARIES - List of libraries when using libcunit.
3# CUNIT_FOUND - True if libcunit found.
4if(CUNIT_INCLUDE_DIRS)
5	# Already in cache, be silent
6	set(CUNIT_FIND_QUIETLY YES)
7endif()
8
9find_path(CUNIT_INCLUDE_DIRS CUnit/CUnit.h)
10find_library(CUNIT_LIBRARY NAMES cunit libcunit)
11
12# handle the QUIETLY and REQUIRED arguments and set CUNIT_FOUND to TRUE if
13# all listed variables are TRUE
14include(FindPackageHandleStandardArgs)
15find_package_handle_standard_args(CUNIT DEFAULT_MSG CUNIT_LIBRARY CUNIT_INCLUDE_DIRS)
16
17if(CUNIT_FOUND)
18	set(CUNIT_LIBRARIES ${CUNIT_LIBRARY})
19endif()
20