FindPike.cmake 796 B

123456789101112131415161718192021222324252627282930
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #.rst:
  4. # FindPike
  5. # --------
  6. #
  7. # Find Pike
  8. #
  9. # This module finds if PIKE is installed and determines where the
  10. # include files and libraries are. It also determines what the name of
  11. # the library is. This code sets the following variables:
  12. #
  13. # ::
  14. #
  15. # PIKE_INCLUDE_PATH = path to where program.h is found
  16. # PIKE_EXECUTABLE = full path to the pike binary
  17. find_path(PIKE_INCLUDE_PATH program.h
  18. ${PIKE_POSSIBLE_INCLUDE_PATHS}
  19. PATH_SUFFIXES include/pike8.0/pike include/pike7.8/pike include/pike7.4/pike)
  20. find_program(PIKE_EXECUTABLE
  21. NAMES pike8.0 pike 7.8 pike7.4
  22. )
  23. mark_as_advanced(
  24. PIKE_EXECUTABLE
  25. PIKE_INCLUDE_PATH
  26. )