Commit 40a669b8c19a407e2e78f82a5470e3313e03a203

Authored by David Mayerich
1 parent c61fd046

added a cmake directory containing any required Find----.cmake files for libraries used in STIMLIB

cmake/FindANN.cmake 0 → 100644
  1 +# - Try to find ANN
  2 +# Once done this will define
  3 +#
  4 +# ANN_FOUND - system has ANN
  5 +# ANN_INCLUDE_DIR - the ANN include directory
  6 +# ANN_LIBRARY - Link these to use ANN
  7 +#
  8 +
  9 +IF (ANN_INCLUDE_DIRS)
  10 + # Already in cache, be silent
  11 + SET(ANN_FIND_QUIETLY TRUE)
  12 +ENDIF (ANN_INCLUDE_DIRS)
  13 +
  14 +FIND_PATH( ANN_INCLUDE_DIR ANN/ANN.h
  15 + PATHS "/usr/include" "C:/libs/ANN/include")
  16 +
  17 +if( WIN32 )
  18 +
  19 + set(ANN_LIBRARY $ENV{ANN_PATH}\\ANN.lib)
  20 + set(ANN_INCLUDE_DIR $ENV{ANN_PATH})
  21 +
  22 +
  23 + # Store the library dir. May be used for linking to dll!
  24 + # GET_FILENAME_COMPONENT( ANN_LIBRARY_DIR ${ANN_LIBRARY} PATH )
  25 +
  26 + find_package_handle_standard_args(ANN DEFAULT_MSG ANN_INCLUDE_DIR)
  27 +
  28 +else (WIN32)
  29 +
  30 + FIND_LIBRARY( ANN_LIBRARY
  31 + NAMES ann ANN
  32 + PATHS /lib /usr/lib /usr/lib64 /usr/local/lib )
  33 +
  34 +endif( WIN32)
  35 +
  36 +
  37 +IF (ANN_INCLUDE_DIR AND ANN_LIBRARY)
  38 + SET(ANN_FOUND TRUE)
  39 +ELSE (ANN_INCLUDE_DIR AND ANN_LIBRARY)
  40 + SET( ANN_FOUND FALSE )
  41 +ENDIF (ANN_INCLUDE_DIR AND ANN_LIBRARY)
  42 +
... ...
FindSTIM.cmake renamed to cmake/FindSTIM.cmake