* The construct_copy() function was using the full classname of the class
[kdebindings.git] / CMakeLists.txt.qtruby
blobe7dddf52de79c10449a6a0f616c1ab1c30da7556
1 # Use this file to build a Qt only version of QtRuby.
2 # 1. Copy this file to kdebindings/CMakeLists.txt
3 # 2. Copy the following files to kdebindings/cmake/modules/:
4 #      kdelibs/cmake/modules/FindQt4.cmake
5 #      kdelibs/cmake/modules/FindRUBY.cmake
6 #      kdelibs/cmake/modules/MacroOptionalFindPackage.cmake
7 #      kdelibs/cmake/modules/MacroPushRequiredVars.cmake
8 # 3. Build kdebindings with command like:
9 #      cmake
10 #        -DCMAKE_INSTALL_PREFIX=/opt/ruby1.8.7                          \
11 #        -DRUBY_EXECUTABLE=/opt/ruby1.8.7/bin/ruby                      \
12 #        -DRUBY_INCLUDE_PATH=/opt/ruby1.8.7/lib/ruby/1.8/i686-linux/    \
13 #        -Wno-dev                                                       \
14 #        -DENABLE_SMOKE=on                                              \
15 #        -DENABLE_QTRUBY=on                                             \
16 #        -DENABLE_QTWEBKIT_SMOKE=off                                    \
17 #        -DENABLE_QTSCRIPT_SMOKE=off                                    \
18 #        -DENABLE_QTUITOOLS_SMOKE=off                                   \
19 #        -DENABLE_QTTEST_SMOKE=off                                      \
20 #        -DENABLE_PHONON_SMOKE=off                                      \
21 #        -DENABLE_QSCI_SMOKE=off                                        \
22 #        -DENABLE_QWT_SMOKE=off                                         \
23 #        -DENABLE_KDE_SMOKE=off                                         \
24 #        -DENABLE_KDEVPLATFORM_SMOKE=off                                \
25 #        -DENABLE_KHTML_SMOKE=off                                       \
26 #        -DENABLE_KTEXTEDITOR_SMOKE=off                                 \
27 #        -DENABLE_SOLID_SMOKE=off                                       \
28 #        -DENABLE_PLASMA_SMOKE=off                                      \
29 #        -DENABLE_QTWEBKIT_RUBY=off                                     \
30 #        -DENABLE_QTUITOOLS_RUBY=off                                    \
31 #        -DENABLE_QTSCRIPT=off                                          \
32 #        -DENABLE_QTTEST=off                                            \
33 #        -DENABLE_PHONON_RUBY=off                                       \
34 #        -DENABLE_QSCINTILLA_RUBY=off                                   \
35 #        -DENABLE_QWT_RUBY=off                                          \
36 #        -DENABLE_SOPRANO_RUBY=off                                      \
37 #        -DENABLE_KDEVPLATFORM_RUBY=off                                 \
38 #        -DENABLE_KORUNDUM_RUBY=off                                     \
39 #        -DENABLE_KHTML_RUBY=off                                        \
40 #        -DENABLE_KTEXTEDITOR_RUBY=off                                  \
41 #        -DENABLE_SOLID_RUBY=off                                        \
42 #        -DENABLE_KROSSRUBY=off                                         \
43 #        -DENABLE_PLASMA_RUBY=off
44 # 4. If you need to clean the tree, use:
45 #      make clean
46 #      rm CMakeCache.txt CMakeFiles/*log
49 project(kdebindings)
51 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
52 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
54 include (MacroOptionalFindPackage)
56 FIND_PACKAGE(Perl REQUIRED)
57 FIND_PACKAGE (Qt4 REQUIRED)
59 add_definitions (${QT_DEFINITIONS}  -DHAVE_CONFIG_H=1)
60 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${QT_INCLUDES} )
62 FIND_PACKAGE (RUBY REQUIRED)
63 FIND_PACKAGE (OpenGL REQUIRED)
65 add_subdirectory(smoke)
67 if(RUBY_EXECUTABLE)
68    add_subdirectory( ruby )
69 endif(RUBY_EXECUTABLE)