CMake Warning at CMakeLists.txt:803 (message):
to find cunit
CMake Error at CMakeLists.txt:804 (find_package):
By not providing "Findcunit.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "cunit", but
CMake did not find one.
Could not find a package configuration file provided by "cunit" with any of
the following names:
cunitConfig.cmake
cunit-config.cmake
Add the installation prefix of "cunit" to CMAKE_PREFIX_PATH or set
"cunit_DIR" to a directory containing one of the above files. If "cunit"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
solution:
[root@localhost build]# cat ..//src/cmake/modules/Findcunit.cmake
# Tries to find GTest.
#
# Usage of this module as follows:
#
# find_package(CUnit)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# CUNIT_PREFIX Set this variable to the root installation of
# GTest if the module has problems finding
# the proper installation path.
#
# Variables defined by this module:
#
# CUNIT_FOUND System has GTest libs/headers
# CUNIT_LIBRARIES The GTest libraries (tcmalloc & profiler)
# CUNIT_INCLUDE_DIR The location of GTest headers
find_path(CUNIT_INCLUDE_DIR NAMES CUnit/CUnit.h)
message(WARNING "include dir " ${CUNIT_INCLUDE_DIR})
find_library(CUNIT_LIBRARY NAMES cunit)
message(WARNING "lib dir " ${CUNIT_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
CUnit
DEFAULT_MSG
CUNIT_LIBRARY
CUNIT_INCLUDE_DIR)