FindPike.cmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #.rst:
  2. # FindPike
  3. # --------
  4. #
  5. # Find Pike
  6. #
  7. # This module finds if PIKE is installed and determines where the
  8. # include files and libraries are. It also determines what the name of
  9. # the library is. This code sets the following variables:
  10. #
  11. # ::
  12. #
  13. # PIKE_INCLUDE_PATH = path to where program.h is found
  14. # PIKE_EXECUTABLE = full path to the pike binary
  15. #=============================================================================
  16. # Copyright 2004-2009 Kitware, Inc.
  17. #
  18. # Distributed under the OSI-approved BSD License (the "License");
  19. # see accompanying file Copyright.txt for details.
  20. #
  21. # This software is distributed WITHOUT ANY WARRANTY; without even the
  22. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23. # See the License for more information.
  24. #=============================================================================
  25. # (To distribute this file outside of CMake, substitute the full
  26. # License text for the above reference.)
  27. file(GLOB PIKE_POSSIBLE_INCLUDE_PATHS
  28. /usr/include/pike/*
  29. /usr/local/include/pike/*)
  30. find_path(PIKE_INCLUDE_PATH program.h
  31. ${PIKE_POSSIBLE_INCLUDE_PATHS})
  32. find_program(PIKE_EXECUTABLE
  33. NAMES pike7.4
  34. )
  35. mark_as_advanced(
  36. PIKE_EXECUTABLE
  37. PIKE_INCLUDE_PATH
  38. )