Blame view

FindSTIM.cmake 544 Bytes
0d840342   David Mayerich   public release co...
1
2
3
4
5
  # finds the STIM library (downloads it if it isn't present)
  # set STIMLIB_PATH to the directory containing the stim subdirectory (the stim repository)
  
  include(FindPackageHandleStandardArgs)
  
ab01c2d7   David Mayerich   Edits to update S...
6
  set(STIM_ROOT $ENV{STIM_ROOT})
0d840342   David Mayerich   public release co...
7
  
ab01c2d7   David Mayerich   Edits to update S...
8
9
10
  IF(NOT STIM_ROOT)
      MESSAGE("ERROR: STIM_ROOT environment variable must be set!")
  ENDIF(NOT STIM_ROOT)
0d840342   David Mayerich   public release co...
11
  
ab01c2d7   David Mayerich   Edits to update S...
12
13
14
      FIND_PATH(STIM_INCLUDE_DIRS DOC "Path to STIM include directory."
                NAMES stim/image/image.h
                PATHS ${STIM_ROOT})
0d840342   David Mayerich   public release co...
15
  
ab01c2d7   David Mayerich   Edits to update S...
16
  find_package_handle_standard_args(STIM DEFAULT_MSG STIM_INCLUDE_DIRS)