2
# This module finds if RUBY 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:
6
# RUBY_INCLUDE_PATH = path to where object.h can be found
7
# RUBY_EXECUTABLE = full path to the ruby binary
10
SET(RUBY_POSSIBLE_INCLUDE_PATHS
11
/usr/lib/ruby/1.8/i386-linux
14
SET(RUBY_POSSIBLE_LIB_PATHS
18
FIND_PATH(RUBY_INCLUDE_PATH ruby.h
19
${RUBY_POSSIBLE_INCLUDE_PATHS})
21
FIND_LIBRARY(RUBY_LIBRARY
23
PATHS ${RUBY_POSSIBLE_LIB_PATHS}
26
FIND_PROGRAM(RUBY_EXECUTABLE