source: pacpussensors/trunk/Vislab/lib3dv/eigen/bench/btl/cmake/FindGOTO2.cmake@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 661 bytes
Line 
1
2if (GOTO2_LIBRARIES)
3 set(GOTO2_FIND_QUIETLY TRUE)
4endif (GOTO2_LIBRARIES)
5#
6# find_path(GOTO_INCLUDES
7# NAMES
8# cblas.h
9# PATHS
10# $ENV{GOTODIR}/include
11# ${INCLUDE_INSTALL_DIR}
12# )
13
14find_file(GOTO2_LIBRARIES libgoto2.so PATHS /usr/lib $ENV{GOTO2DIR} ${LIB_INSTALL_DIR})
15find_library(GOTO2_LIBRARIES goto2 PATHS $ENV{GOTO2DIR} ${LIB_INSTALL_DIR})
16
17if(GOTO2_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
18 set(GOTO2_LIBRARIES ${GOTO2_LIBRARIES} "-lpthread -lgfortran")
19endif()
20
21include(FindPackageHandleStandardArgs)
22find_package_handle_standard_args(GOTO2 DEFAULT_MSG
23 GOTO2_LIBRARIES)
24
25mark_as_advanced(GOTO2_LIBRARIES)
Note: See TracBrowser for help on using the repository browser.