aboutsummaryrefslogtreecommitdiff
path: root/CMake/FindXGANDALF.cmake
blob: 8138da77e808f7d4d7f690ee3f406ac50face794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# - 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)