1# Distributed under the OSI-approved BSD 3-Clause License. See accompanying 2# file Copyright.txt or https://cmake.org/licensing for details. 3 4#[=======================================================================[.rst: 5FindPike 6-------- 7 8Find Pike 9 10This module finds if PIKE is installed and determines where the 11include files and libraries are. It also determines what the name of 12the library is. This code sets the following variables: 13 14:: 15 16 PIKE_INCLUDE_PATH = path to where program.h is found 17 PIKE_EXECUTABLE = full path to the pike binary 18#]=======================================================================] 19 20find_path(PIKE_INCLUDE_PATH program.h 21 ${PIKE_POSSIBLE_INCLUDE_PATHS} 22 PATH_SUFFIXES include/pike8.0/pike include/pike7.8/pike include/pike7.4/pike) 23 24find_program(PIKE_EXECUTABLE 25 NAMES pike8.0 pike 7.8 pike7.4 26 ) 27 28mark_as_advanced( 29 PIKE_EXECUTABLE 30 PIKE_INCLUDE_PATH 31 ) 32