2008-10-20 18:43:11 +08:00
|
|
|
|
|
|
|
if (TAUCS_INCLUDES AND TAUCS_LIBRARIES)
|
|
|
|
set(TAUCS_FIND_QUIETLY TRUE)
|
|
|
|
endif (TAUCS_INCLUDES AND TAUCS_LIBRARIES)
|
|
|
|
|
2009-02-05 17:36:52 +08:00
|
|
|
find_package(LAPACK)
|
|
|
|
|
|
|
|
if(LAPACK_FOUND)
|
|
|
|
|
|
|
|
find_path(TAUCS_INCLUDES
|
|
|
|
NAMES
|
|
|
|
taucs.h
|
|
|
|
PATHS
|
|
|
|
$ENV{TAUCSDIR}
|
|
|
|
${INCLUDE_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
find_library(TAUCS_LIBRARIES taucs PATHS $ENV{TAUCSDIR} ${LIB_INSTALL_DIR})
|
|
|
|
|
|
|
|
if(TAUCS_LIBRARIES)
|
2009-02-17 18:34:17 +08:00
|
|
|
set(TAUCS_LIBRARIES ${TAUCS_LIBRARIES} ${LAPACK_LIBRARIES})
|
2009-02-05 17:36:52 +08:00
|
|
|
endif(TAUCS_LIBRARIES)
|
|
|
|
|
|
|
|
endif(LAPACK_FOUND)
|
2008-10-20 18:43:11 +08:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(TAUCS DEFAULT_MSG
|
|
|
|
TAUCS_INCLUDES TAUCS_LIBRARIES)
|
|
|
|
|
|
|
|
mark_as_advanced(TAUCS_INCLUDES TAUCS_LIBRARIES)
|