/usr/lib/cmake/paraview/FindSILO.cmake is in paraview-dev 4.0.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | # Try to find SILO library and headers.
# This file sets the following variables:
#
# SILO_INCLUDE_DIR, where to find silo.h, etc.
# SILO_LIBRARIES, the libraries to link against
# SILO_FOUND, If false, do not try to use SILO.
#
# Also defined, but not for general use are:
# SILO_LIBRARY, the full path to the silo library.
# SILO_INCLUDE_PATH, for CMake backward compatibility
FIND_PATH( SILO_INCLUDE_DIR silo.h
/usr/local/include
/usr/include
)
FIND_LIBRARY( SILO_LIBRARY NAMES silo siloh5
/usr/lib
/usr/local/lib
)
SET( SILO_FOUND "NO" )
IF(SILO_INCLUDE_DIR)
IF(SILO_LIBRARY)
SET( SILO_LIBRARIES ${SILO_LIBRARY})
SET( SILO_FOUND "YES" )
#The following deprecated settings are for backwards compatibility with CMake1.4
SET (SILO_INCLUDE_PATH ${SILO_INCLUDE_DIR})
ELSE(SILO_LIBRARY)
IF(SILO_FIND_REQURIED)
message(SEND_ERROR "Unable to find the requested SILO libraries.")
ENDIF(SILO_FIND_REQURIED)
ENDIF(SILO_LIBRARY)
ENDIF(SILO_INCLUDE_DIR)
# handle the QUIETLY and REQUIRED arguments and set SILO_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SILO DEFAULT_MSG SILO_LIBRARY SILO_INCLUDE_DIR)
MARK_AS_ADVANCED(
SILO_INCLUDE_DIR
SILO_LIBRARY
)
|