~kubuntu-members/korundum/4.11

« back to all changes in this revision

Viewing changes to korundum/CMakeLists.txt

  • Committer: Ian Monroe
  • Date: 2010-11-21 15:55:01 UTC
  • Revision ID: git-v1:c37670e4e3c59f5eb2ba112f5341a5e706217f6f
Split up Smoke into Qt and KDE directories. 
Move libsmoke stuff into the generator directory
Split up Ruby into qtruby and korundum directories

svn path=/trunk/KDE/kdebindings/ruby/; revision=1199320

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
add_subdirectory( examples )
2
 
add_subdirectory( src )
3
 
add_subdirectory( tools )
4
 
 
 
1
project(Korundum)
 
2
 
 
3
set(COMPILE_RUBY FALSE CACHE INTERNAL "")
 
4
 
 
5
find_package(Ruby REQUIRED)
 
6
find_package(KDE4 REQUIRED)
 
7
include(KDE4Defaults)
 
8
 
 
9
if (RUBY_LIBRARY AND RUBY_INCLUDE_DIRS AND RUBY_EXECUTABLE)
 
10
    set(COMPILE_RUBY TRUE CACHE INTERNAL "")
 
11
endif (RUBY_LIBRARY AND RUBY_INCLUDE_DIRS AND RUBY_EXECUTABLE)
 
12
 
 
13
macro_log_feature(COMPILE_RUBY "Ruby" "Ruby interpreter and libraries" "http://www.ruby-lang.org" FALSE "" "Needed to compile the Ruby bindings")
 
14
 
 
15
if (NOT COMPILE_RUBY)
 
16
    return()
 
17
endif (NOT COMPILE_RUBY)
 
18
 
 
19
SET(CUSTOM_RUBY_SITE_ARCH_DIR ${RUBY_SITEARCH_DIR} CACHE DIR "custom installation directory for ruby binary extension" )
 
20
SET(CUSTOM_RUBY_SITE_LIB_DIR ${RUBY_SITELIB_DIR} CACHE DIR "custom installation directory for ruby extension" )
 
21
 
 
22
# compute an overall version number which can be compared at once
 
23
MATH(EXPR RUBY_VERSION_NUMBER "${RUBY_VERSION_MAJOR}*10000 + ${RUBY_VERSION_MINOR}*100 + ${RUBY_VERSION_PATCH}")
 
24
 
 
25
 
 
26
macro_display_bindings_log()