1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00
Files
rtbrick-bngblaster/code/libdict/FindCUnit.cmake
2023-12-21 11:03:22 +00:00

20 lines
649 B
CMake

# CUNIT_INCLUDE_DIRS - where to find <CUnit/CUnit.h>, etc.
# CUNIT_LIBRARIES - List of libraries when using libcunit.
# CUNIT_FOUND - True if libcunit found.
if(CUNIT_INCLUDE_DIRS)
# Already in cache, be silent
set(CUNIT_FIND_QUIETLY YES)
endif()
find_path(CUNIT_INCLUDE_DIRS CUnit/CUnit.h)
find_library(CUNIT_LIBRARY NAMES cunit libcunit)
# handle the QUIETLY and REQUIRED arguments and set CUNIT_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CUnit DEFAULT_MSG CUNIT_LIBRARY CUNIT_INCLUDE_DIRS)
if(CUNIT_FOUND)
set(CUNIT_LIBRARIES ${CUNIT_LIBRARY})
endif()