FindPike.cmake 634 B

123456789101112131415161718192021222324252627
  1. #
  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 object.h can be 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. PATHS
  17. /usr/bin
  18. /usr/local/bin
  19. )
  20. MARK_AS_ADVANCED(
  21. PIKE_EXECUTABLE
  22. PIKE_INCLUDE_PATH
  23. )