diff options
author | Thomas White <taw@physics.org> | 2018-05-17 15:31:45 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-05-17 15:39:22 +0200 |
commit | a9f48b6507b0326a34b84d7600f5eb791993eeb1 (patch) | |
tree | b89b6e73477125336c35c6d7d9996bd8ebae7fd7 /CMake/FindFDIP.cmake | |
parent | 87fd650abf11da75e7abd2ff90821cf7cb041b91 (diff) | |
parent | a9f4c0ff4376267d90d6e8f9a0b6c012ec0588a4 (diff) |
Merge branch 'tom/cmake'
Diffstat (limited to 'CMake/FindFDIP.cmake')
-rw-r--r-- | CMake/FindFDIP.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CMake/FindFDIP.cmake b/CMake/FindFDIP.cmake new file mode 100644 index 00000000..6db3b993 --- /dev/null +++ b/CMake/FindFDIP.cmake @@ -0,0 +1,25 @@ +# - Find FDIP +# Find the native FDIP includes and library +# +# FDIP_INCLUDES - where to find streakFinder.h +# FDIP_LIBRARIES - List of libraries when using FDIP. +# FDIP_FOUND - True if FDIP found. + +if (FDIP_INCLUDES) + # Already in cache, be silent + set (FDIP_FIND_QUIETLY TRUE) +endif (FDIP_INCLUDES) + +find_path (FDIP_INCLUDES streakFinder.h + PATHS + ${CMAKE_INSTALL_PREFIX}/include + PATH_SUFFIXES fastDiffractionImageProcessing) + +find_library (FDIP_LIBRARIES fastDiffractionImageProcessing + PATHS + ${CMAKE_INSTALL_PREFIX}/lib) + +# handle the QUIETLY and REQUIRED arguments and set FDIP_FOUND to TRUE if +# all listed variables are TRUE +include (FindPackageHandleStandardArgs) +find_package_handle_standard_args (FDIP DEFAULT_MSG FDIP_LIBRARIES FDIP_INCLUDES) |