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
|
|
|
|
2009-09-28 19:45:50 +04:00
|
|
|
#=============================================================================
|
|
|
|
# Copyright 2004-2009 Kitware, Inc.
|
|
|
|
#
|
|
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
# see accompanying file Copyright.txt for details.
|
|
|
|
#
|
|
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the License for more information.
|
|
|
|
#=============================================================================
|
2010-08-07 04:48:47 +04:00
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
2009-09-28 19:45:50 +04:00
|
|
|
# License text for the above reference.)
|
|
|
|
|
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
|
|
|
|
)
|