FindPike.cmake 607 B

123456789101112131415161718192021222324
  1. # - Find Pike
  2. # This module finds if PIKE is installed and determines where the include files
  3. # and libraries are. It also determines what the name of the library is. This
  4. # code sets the following variables:
  5. #
  6. # PIKE_INCLUDE_PATH = path to where program.h is found
  7. # PIKE_EXECUTABLE = full path to the pike binary
  8. #
  9. FILE(GLOB PIKE_POSSIBLE_INCLUDE_PATHS
  10. /usr/include/pike/*
  11. /usr/local/include/pike/*)
  12. FIND_PATH(PIKE_INCLUDE_PATH program.h
  13. ${PIKE_POSSIBLE_INCLUDE_PATHS})
  14. FIND_PROGRAM(PIKE_EXECUTABLE
  15. NAMES pike7.4
  16. )
  17. MARK_AS_ADVANCED(
  18. PIKE_EXECUTABLE
  19. PIKE_INCLUDE_PATH
  20. )