annotate 3rdparty/vmime/cmake/FindCppUnit.cmake @ 0:a4671277546c tip

created the repository for the thymian project
author ferencd
date Tue, 17 Aug 2021 11:19:54 +0200
parents
children
rev   line source
ferencd@0 1 #
ferencd@0 2 # http://root.cern.ch/viewvc/trunk/cint/reflex/cmake/modules/FindCppUnit.cmake
ferencd@0 3 #
ferencd@0 4 # - Find CppUnit
ferencd@0 5 # This module finds an installed CppUnit package.
ferencd@0 6 #
ferencd@0 7 # It sets the following variables:
ferencd@0 8 # CPPUNIT_FOUND - Set to false, or undefined, if CppUnit isn't found.
ferencd@0 9 # CPPUNIT_INCLUDE_DIR - The CppUnit include directory.
ferencd@0 10 # CPPUNIT_LIBRARY - The CppUnit library to link against.
ferencd@0 11
ferencd@0 12 FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h)
ferencd@0 13 FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit)
ferencd@0 14
ferencd@0 15 IF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY)
ferencd@0 16 SET(CPPUNIT_FOUND TRUE)
ferencd@0 17 ENDIF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY)
ferencd@0 18
ferencd@0 19 IF (CPPUNIT_FOUND)
ferencd@0 20
ferencd@0 21 # show which CppUnit was found only if not quiet
ferencd@0 22 IF (NOT CppUnit_FIND_QUIETLY)
ferencd@0 23 MESSAGE(STATUS "Found CppUnit: ${CPPUNIT_LIBRARY}")
ferencd@0 24 ENDIF (NOT CppUnit_FIND_QUIETLY)
ferencd@0 25
ferencd@0 26 ELSE (CPPUNIT_FOUND)
ferencd@0 27
ferencd@0 28 # fatal error if CppUnit is required but not found
ferencd@0 29 IF (CppUnit_FIND_REQUIRED)
ferencd@0 30 MESSAGE(FATAL_ERROR "Could not find CppUnit")
ferencd@0 31 ENDIF (CppUnit_FIND_REQUIRED)
ferencd@0 32
ferencd@0 33 ENDIF (CPPUNIT_FOUND)
ferencd@0 34