Warning, /EICrecon/cmake/FindFastJetContrib.cmake is written in an unsupported language. File is not indexed.
0001 # * Locate FastJetContrib library Defines:
0002 #
0003 # FJCONTRIB_FOUND FJCONTRIB_INCLUDE_DIR FJCONTRIB_INCLUDE_DIRS (not cached)
0004 # FJCONTRIB_LIBRARY FJCONTRIB_LIBRARIES (not cached) FJCONTRIB_LIBRARY_DIRS (not
0005 # cached)
0006
0007 find_library(
0008 FJCONTRIB_LIBRARY
0009 NAMES fastjetcontribfragile
0010 HINTS $ENV{FASTJET_ROOT}/lib ${FASTJET_ROOT_DIR}/lib)
0011
0012 # Resolve symlinks on the library to derive the real package prefix.
0013 set(_fjcontrib_include_hints)
0014 if(FJCONTRIB_LIBRARY)
0015 # cmake-lint: disable=E1126
0016 file(REAL_PATH "${FJCONTRIB_LIBRARY}" _fjcontrib_real_lib)
0017 get_filename_component(_fjcontrib_lib_dir "${_fjcontrib_real_lib}" DIRECTORY)
0018 get_filename_component(_fjcontrib_prefix "${_fjcontrib_lib_dir}" DIRECTORY)
0019 list(APPEND _fjcontrib_include_hints "${_fjcontrib_prefix}/include")
0020 unset(_fjcontrib_real_lib)
0021 unset(_fjcontrib_lib_dir)
0022 unset(_fjcontrib_prefix)
0023 endif()
0024
0025 find_path(
0026 FJCONTRIB_INCLUDE_DIR fastjet/contrib/Centauro.hh
0027 HINTS ${_fjcontrib_include_hints} $ENV{FASTJET_ROOT}/include
0028 ${FASTJET_ROOT_DIR}/include
0029 NO_DEFAULT_PATH)
0030
0031 unset(_fjcontrib_include_hints)
0032
0033 # handle the QUIETLY and REQUIRED arguments and set FJCONTRIB_FOUND to TRUE if
0034 # all listed variables are TRUE
0035 include(FindPackageHandleStandardArgs)
0036 find_package_handle_standard_args(FastJetContrib DEFAULT_MSG
0037 FJCONTRIB_INCLUDE_DIR FJCONTRIB_LIBRARY)
0038
0039 mark_as_advanced(FJCONTRIB_FOUND FJCONTRIB_INCLUDE_DIR FJCONTRIB_LIBRARY)
0040
0041 set(FJCONTRIB_INCLUDE_DIRS ${FJCONTRIB_INCLUDE_DIR})
0042 set(FJCONTRIB_LIBRARIES ${FJCONTRIB_LIBRARY})
0043 get_filename_component(FJCONTRIB_LIBRARY_DIRS ${FJCONTRIB_LIBRARY} PATH)