Mercurial > code
comparison cmake/FindCppunit.cmake @ 218:9324b9e0e7b7
DynLib: add unit tests
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 08 May 2014 18:57:47 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
215:5bb5712d400f | 218:9324b9e0e7b7 |
---|---|
1 # Find cppunit, this modules defines: | |
2 # CPPUNIT_INCLUDE_DIR, where to find cppunit/TestCase.h | |
3 # CPPUNIT_LIBRARY, where to find library | |
4 # CPPUNIT_FOUND, if it is found | |
5 | |
6 # find cppunit/TestCase.h | |
7 find_path( | |
8 CPPUNIT_INCLUDE_DIR cppunit/TestCase.h | |
9 PATHS | |
10 /usr/include | |
11 /usr/local/include | |
12 ) | |
13 | |
14 # find libcppunit.so | |
15 find_library( | |
16 CPPUNIT_LIBRARY NAMES libcppunit cppunit | |
17 PATHS_SUFFIXES lib lib64 | |
18 PATHS | |
19 /usr/ | |
20 /usr/local/ | |
21 ) | |
22 | |
23 include(FindPackageHandleStandardArgs) | |
24 | |
25 find_package_handle_standard_args( | |
26 Cppunit | |
27 REQUIRED_VARS CPPUNIT_INCLUDE_DIR CPPUNIT_LIBRARY | |
28 ) | |
29 | |
30 mark_as_advanced(CPPUNIT_INCLUDE_DIR CPPUNIT_LIBRARY) |