]> git.proxmox.com Git - ceph.git/blame - ceph/cmake/modules/FindCUnit.cmake
import ceph quincy 17.2.1
[ceph.git] / ceph / cmake / modules / FindCUnit.cmake
CommitLineData
11fdf7f2
TL
1# Try to find CUnit
2#
3# Once done, this will define
4#
5# CUNIT_FOUND
6
7find_path(CUNIT_INCLUDE_DIR NAMES CUnit/CUnit.h)
8
9find_library(CUNIT_LIBRARY NAMES
10 cunit
11 libcunit
12 cunitlib)
13
14include(FindPackageHandleStandardArgs)
15find_package_handle_standard_args(CUnit
16 DEFAULT_MSG CUNIT_LIBRARY CUNIT_INCLUDE_DIR)
17
18if(CUNIT_FOUND)
19 set(CUNIT_LIBRARIES ${CUNIT_LIBRARY})
20 set(CUNIT_INCLUDE_DIRS ${CUNIT_INCLUDE_DIR})
21endif()
22
23mark_as_advanced(CUNIT_INCLUDE_DIR CUNIT_LIBRARY)