~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Modules/FindRuby.cmake

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2005-03-02 09:22:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050302092244-y6o9j8wr27vqcqvx
Tags: 2.0.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
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:
 
5
#
 
6
#  RUBY_INCLUDE_PATH       = path to where object.h can be found
 
7
#  RUBY_EXECUTABLE         = full path to the ruby binary
 
8
#
 
9
 
 
10
SET(RUBY_POSSIBLE_INCLUDE_PATHS
 
11
  /usr/lib/ruby/1.8/i386-linux
 
12
  )
 
13
 
 
14
SET(RUBY_POSSIBLE_LIB_PATHS
 
15
  /usr/lib
 
16
  )
 
17
 
 
18
FIND_PATH(RUBY_INCLUDE_PATH ruby.h
 
19
  ${RUBY_POSSIBLE_INCLUDE_PATHS})
 
20
 
 
21
FIND_LIBRARY(RUBY_LIBRARY
 
22
  NAMES ruby1.8
 
23
  PATHS ${RUBY_POSSIBLE_LIB_PATHS}
 
24
  )
 
25
 
 
26
FIND_PROGRAM(RUBY_EXECUTABLE
 
27
  NAMES ruby1.8
 
28
  PATHS
 
29
  /usr/bin
 
30
  /usr/local/bin
 
31
)
 
32
 
 
33
MARK_AS_ADVANCED(
 
34
  RUBY_EXECUTABLE
 
35
  RUBY_LIBRARY
 
36
  RUBY_INCLUDE_PATH
 
37
  )