]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | # Try to find CUnit |
2 | # | |
3 | # Once done, this will define | |
4 | # | |
5 | # CUNIT_FOUND | |
6 | ||
7 | find_path(CUNIT_INCLUDE_DIR NAMES CUnit/CUnit.h) | |
8 | ||
9 | find_library(CUNIT_LIBRARY NAMES | |
10 | cunit | |
11 | libcunit | |
12 | cunitlib) | |
13 | ||
14 | include(FindPackageHandleStandardArgs) | |
15 | find_package_handle_standard_args(CUnit | |
16 | DEFAULT_MSG CUNIT_LIBRARY CUNIT_INCLUDE_DIR) | |
17 | ||
18 | if(CUNIT_FOUND) | |
19 | set(CUNIT_LIBRARIES ${CUNIT_LIBRARY}) | |
20 | set(CUNIT_INCLUDE_DIRS ${CUNIT_INCLUDE_DIR}) | |
21 | endif() | |
22 | ||
23 | mark_as_advanced(CUNIT_INCLUDE_DIR CUNIT_LIBRARY) |