diff options
author | Thomas White <taw@physics.org> | 2018-03-12 09:48:00 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-03-12 10:17:49 +0100 |
commit | 753ceccfb4517ae0aa4445c18ae34ca52171f28d (patch) | |
tree | a2928d9de6f10813b97363ea401cc72625ed3ce2 /CMake/FindXGANDALF.cmake | |
parent | 95bb73d90fed58f61dddc0d1d3e8afeb9879daaa (diff) |
Add CMake
Diffstat (limited to 'CMake/FindXGANDALF.cmake')
-rw-r--r-- | CMake/FindXGANDALF.cmake | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/CMake/FindXGANDALF.cmake b/CMake/FindXGANDALF.cmake new file mode 100644 index 00000000..1c6999a3 --- /dev/null +++ b/CMake/FindXGANDALF.cmake @@ -0,0 +1,26 @@ +# - Find XGANDALF +# Find the native XGANDALF includes and library +# +# XGANDALF_INCLUDES - where to find IndexerBase.h +# XGANDALF_LIBRARIES - List of libraries when using XGANDALF. +# XGANDALF_FOUND - True if XGANDALF found. + +if (XGANDALF_INCLUDES) + # Already in cache, be silent + set (XGANDALF_FIND_QUIETLY TRUE) +endif (XGANDALF_INCLUDES) + +find_path (XGANDALF_INCLUDES xgandalf/IndexerBase.h + PATHS + ${CMAKE_INSTALL_PREFIX}/include) + +find_library (XGANDALF_LIBRARIES xgandalf + PATHS + ${CMAKE_INSTALL_PREFIX}/lib) + +# handle the QUIETLY and REQUIRED arguments and set XGANDALF_FOUND to TRUE if +# all listed variables are TRUE +include (FindPackageHandleStandardArgs) +find_package_handle_standard_args (XGANDALF DEFAULT_MSG XGANDALF_LIBRARIES XGANDALF_INCLUDES) + +mark_as_advanced (XGANDALF_LIBRARIES XGANDALF_INCLUDES) |