FindPike.cmake 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #=============================================================================
  10. # Copyright 2004-2009 Kitware, Inc.
  11. #
  12. # Distributed under the OSI-approved BSD License (the "License");
  13. # see accompanying file Copyright.txt for details.
  14. #
  15. # This software is distributed WITHOUT ANY WARRANTY; without even the
  16. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. # See the License for more information.
  18. #=============================================================================
  19. # (To distribute this file outside of CMake, substitute the full
  20. # License text for the above reference.)
  21. FILE(GLOB PIKE_POSSIBLE_INCLUDE_PATHS
  22. /usr/include/pike/*
  23. /usr/local/include/pike/*)
  24. FIND_PATH(PIKE_INCLUDE_PATH program.h
  25. ${PIKE_POSSIBLE_INCLUDE_PATHS})
  26. FIND_PROGRAM(PIKE_EXECUTABLE
  27. NAMES pike7.4
  28. )
  29. MARK_AS_ADVANCED(
  30. PIKE_EXECUTABLE
  31. PIKE_INCLUDE_PATH
  32. )