[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] qtruby CMakeLists patch
From: Davor Ocelic <docelic () spinlocksolutions ! com>
Date: 2010-08-19 11:39:57
Message-ID: 20100819133957.69cbe75e () sl1 ! spinlock ! hr
[Download RAW message or body]
Hey folks,
Attached is a simple patch bringing CMakeLists.txt.qtruby up to
date with recent changes etc., so that it works out of the box.
It is also available on:
http://techpubs.spinlocksolutions.com/ruby/CMakeLists.txt.qtruby-2010-08-19.patch
Cya,
-doc
[Attachment #3 (text/x-patch)]
Index: CMakeLists.txt.qtruby
===================================================================
--- CMakeLists.txt.qtruby (revision 1165401)
+++ CMakeLists.txt.qtruby (working copy)
@@ -1,13 +1,18 @@
-# Use this file to build a Qt only version of QtRuby.
+# Use this file to build a Qt-only version of QtRuby.
#
# 1. Copy this file to ./CMakeLists.txt
#
-# 2. Copy files neede by cmake from ../kdelibs/ to ./cmake/modules/:
+# 2. Copy files needed by cmake from ../kdelibs/ to ./cmake/modules/:
#
# cp ../kdelibs/cmake/modules/FindQt4.cmake ./cmake/modules/
# cp ../kdelibs/cmake/modules/FindRUBY.cmake ./cmake/modules/
# cp ../kdelibs/cmake/modules/MacroOptionalFindPackage.cmake ./cmake/modules/
# cp ../kdelibs/cmake/modules/MacroPushRequiredVars.cmake ./cmake/modules/
+# cp ../kdelibs/cmake/modules/Qt4Macros.cmake ./cmake/modules/
+# cp ../kdelibs/cmake/modules/Qt4ConfigDependentSettings.cmake ./cmake/modules/
+# cp ../kdelibs/cmake/modules/HandleImportedTargetsInCMakeRequiredLibraries.cmake ./cmake/modules/
+# cp ../kdelibs/cmake/modules/MacroLogFeature.cmake ./cmake/modules/
+# cp ../kdelibs/cmake/modules/CheckCXXSourceCompiles.cmake ./cmake/modules/
#
# 3. Build kdebindings with a set of commands like:
#
@@ -16,6 +21,7 @@
# cmake \
# -DCMAKE_INSTALL_PREFIX=/usr/local \
# -DRUBY_EXECUTABLE=/usr/local/bin/ruby \
+# -DRUBY_LIBRARY=/usr/local/lib/libruby.so \
# -DRUBY_INCLUDE_PATH=/usr/local/lib/ruby/1.8/i686-linux/ \
# -Wno-dev \
# -DENABLE_SMOKE=on \
@@ -59,6 +65,9 @@
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
include (MacroOptionalFindPackage)
+include (MacroOptionalAddBindings)
+include (MacroLogFeature)
+include (CheckCXXSourceCompiles)
FIND_PACKAGE(Perl REQUIRED)
FIND_PACKAGE (Qt4 REQUIRED)
@@ -69,6 +78,7 @@
FIND_PACKAGE (RUBY REQUIRED)
FIND_PACKAGE (OpenGL REQUIRED)
+add_subdirectory(generator)
add_subdirectory(smoke)
if(RUBY_EXECUTABLE)
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic