aboutsummaryrefslogtreecommitdiff
path: root/CMake/FindNBP.cmake
blob: 63906ea4575ca7ea346bfe6f65682aef8260b912 (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
25
26
# - Find NBP - numericalBraggPrediction
# Find the native NBP includes and library
#
#  NBP_INCLUDES    - where to find IndexerBase.h
#  NBP_LIBRARIES   - List of libraries when using NBP.
#  NBP_FOUND       - True if NBP found.

if (NBP_INCLUDES)
  # Already in cache, be silent
  set (NBP_FIND_QUIETLY TRUE)
endif (NBP_INCLUDES)

find_path (NBP_INCLUDES numericalBraggPrediction/ProjectionCalculation.h
           PATHS
		   ${CMAKE_INSTALL_PREFIX}/include)

find_library (NBP_LIBRARIES numericalBraggPrediction
              PATHS
		      ${CMAKE_INSTALL_PREFIX}/lib)

# handle the QUIETLY and REQUIRED arguments and set NBP_FOUND to TRUE if
# all listed variables are TRUE
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (NBP DEFAULT_MSG NBP_LIBRARIES NBP_INCLUDES)

mark_as_advanced (NBP_LIBRARIES NBP_INCLUDES)