| 1 |
# Look for csparse; note the difference in the directory specifications! |
| 2 |
find_path(CSPARSE_INCLUDE_DIR NAMES cs.h |
| 3 |
PATHS |
| 4 |
/usr/include/suitesparse |
| 5 |
/usr/include |
| 6 |
/opt/local/include |
| 7 |
/usr/local/include |
| 8 |
/sw/include |
| 9 |
/usr/include/ufsparse |
| 10 |
/opt/local/include/ufsparse |
| 11 |
/usr/local/include/ufsparse |
| 12 |
/sw/include/ufsparse |
| 13 |
PATH_SUFFIXES |
| 14 |
suitesparse |
| 15 |
) |
| 16 |
|
| 17 |
find_library(CSPARSE_LIBRARY NAMES cxsparse libcxsparse |
| 18 |
PATHS |
| 19 |
/usr/lib |
| 20 |
/usr/local/lib |
| 21 |
/opt/local/lib |
| 22 |
/sw/lib |
| 23 |
) |
| 24 |
|
| 25 |
include(FindPackageHandleStandardArgs) |
| 26 |
find_package_handle_standard_args(CSparse DEFAULT_MSG |
| 27 |
CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY) |