Working on the shogi serializer.
[tagua.git] / cmake / FindCPPUNIT.cmake
blobe84ad066a4a722038e2195c822674d8fc3cdc543
1 # - Try to find the libcppunit libraries
2 # Once done this will define
4 # CPPUNIT_FOUND - system has libcppunit
5 # CPPUNIT_INCLUDE_DIR - the libcppunit include directory
6 # CPPUNIT_LIBRARIES - libcppunit library
8 FIND_PATH(CPPUNIT_INCLUDE_DIR Test.h PATHS /usr/include/cppunit /usr/local/include/cppunit )
9 FIND_LIBRARY(CPPUNIT_LIBRARIES NAMES cppunit PATHS /usr/lib /usr/local/lib )
11 # IF(CPPUNIT_INCLUDE_DIR)
12 #     message (STATUS "found cppunit include dir: ${CPPUNIT_INCLUDE_DIR}")
13 # ENDIF (CPPUNIT_INCLUDE_DIR)
14
15 # IF(CPPUNIT_LIBRARIES)
16 #     message (STATUS "found cppunit libraries: ${CPPUNIT_LIBRARIES}")
17 # ENDIF (CPPUNIT_LIBRARIES)
19 IF(CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)
20   SET(CPPUNIT_FOUND 1   )
21   if(NOT CPPUNIT_FIND_QUIETLY)
22    message(STATUS "Found cppunit: ${CPPUNIT_LIBRARIES}")
23   endif(NOT CPPUNIT_FIND_QUIETLY)
24 ELSE(CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)
25   SET(CPPUNIT_FOUND 0 CACHE BOOL "Not found cppunit library")
26 ENDIF(CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)
28 MARK_AS_ADVANCED(CPPUNIT_INCLUDE_DIR CPPUNIT_LIBRARIES)