2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# FindPike
|
|
|
|
# --------
|
2004-04-30 20:11:02 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# Find Pike
|
2004-04-30 20:11:02 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# This module finds if PIKE is installed and determines where the
|
|
|
|
# include files and libraries are. It also determines what the name of
|
|
|
|
# the library is. This code sets the following variables:
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# PIKE_INCLUDE_PATH = path to where program.h is found
|
|
|
|
# PIKE_EXECUTABLE = full path to the pike binary
|
2004-04-30 20:11:02 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
file(GLOB PIKE_POSSIBLE_INCLUDE_PATHS
|
2004-04-30 20:11:02 +04:00
|
|
|
/usr/include/pike/*
|
|
|
|
/usr/local/include/pike/*)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_path(PIKE_INCLUDE_PATH program.h
|
2004-04-30 20:11:02 +04:00
|
|
|
${PIKE_POSSIBLE_INCLUDE_PATHS})
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(PIKE_EXECUTABLE
|
2004-04-30 20:11:02 +04:00
|
|
|
NAMES pike7.4
|
|
|
|
)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
mark_as_advanced(
|
2004-04-30 20:11:02 +04:00
|
|
|
PIKE_EXECUTABLE
|
|
|
|
PIKE_INCLUDE_PATH
|
|
|
|
)
|