1 # Use the file to build a Qt only version of QtRuby.
2 # 1. Copy this file to kdebindings/CMakeLists.txt
3 # 2. Edit kdebindings/smoke/CMakeLists.txt and comment out the line:
4 # add_subdirectory(kde)
5 # 3. Change ruby/CMakeLists.txt so I just contains a single line:
6 # add_subdirectory(qtruby)
7 # 4. Copy kdelibs/cmake/modules/FindQt4.cmake to kdebindings/cmake/modules
8 # 5. Copy kdelibs/cmake/modules/FindRUBY.cmake to kdebindings/cmake/modules
9 # 6. Copy kdelibs/cmake/modules/MacroOptionalFindPackage.cmake
10 # and MacroPushRequiredVars.cmake to kdebindings/cmake/modules
11 # 7. Build kdebindings with cmake
15 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
16 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
18 include (MacroOptionalFindPackage)
20 FIND_PACKAGE(Perl REQUIRED)
21 FIND_PACKAGE (Qt4 REQUIRED)
23 add_definitions (${QT_DEFINITIONS} -DHAVE_CONFIG_H=1)
24 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${QT_INCLUDES} )
26 FIND_PACKAGE (RUBY REQUIRED)
27 FIND_PACKAGE (OpenGL REQUIRED)
29 add_subdirectory(smoke)
32 add_subdirectory( ruby )
33 endif(RUBY_EXECUTABLE)