FindPike.cmake 922 B

12345678910111213141516171819202122232425262728293031
  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. Find Pike
  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. PIKE_INCLUDE_PATH = path to where program.h is found
  12. PIKE_EXECUTABLE = full path to the pike binary
  13. #]=======================================================================]
  14. find_path(PIKE_INCLUDE_PATH program.h
  15. ${PIKE_POSSIBLE_INCLUDE_PATHS}
  16. PATH_SUFFIXES include/pike8.0/pike include/pike7.8/pike include/pike7.4/pike)
  17. find_program(PIKE_EXECUTABLE
  18. NAMES pike8.0 pike 7.8 pike7.4
  19. )
  20. mark_as_advanced(
  21. PIKE_EXECUTABLE
  22. PIKE_INCLUDE_PATH
  23. )