summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings/qmf2/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/bindings/qmf2/ruby')
-rw-r--r--qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt b/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt
index 4ea61abbe8..c40480ff4a 100644
--- a/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt
+++ b/qpid/cpp/bindings/qmf2/ruby/CMakeLists.txt
@@ -20,7 +20,9 @@
##------------------------------------------------------
## Use Swig to generate a literal binding to the C++ API
##------------------------------------------------------
-set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/ruby.i PROPERTIES CPLUSPLUS ON)
+set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/ruby.i PROPERTIES
+ CPLUSPLUS ON
+ SWIG_FLAGS "-I${qpid-cpp_SOURCE_DIR}/include;-I${qpid-cpp_SOURCE_DIR}/bindings")
if ((${CMAKE_MAJOR_VERSION} EQUAL 2) AND (${CMAKE_MINOR_VERSION} LESS 8))
set (RUBY_INCLUDE_DIRS ${RUBY_INCLUDE_PATH})
@@ -30,6 +32,10 @@ include_directories(${RUBY_INCLUDE_DIRS}
${qpid-cpp_SOURCE_DIR}/include
${qpid-cpp_SOURCE_DIR}/bindings)
+list(APPEND SWIG_MODULE_cqmf2_ruby_EXTRA_DEPS
+ ${CMAKE_SOURCE_DIR}/include/qmf/qmf2.i
+ ${CMAKE_SOURCE_DIR}/include/qpid/swig_ruby_typemaps.i
+)
swig_add_module(cqmf2_ruby ruby ${CMAKE_CURRENT_SOURCE_DIR}/ruby.i)
swig_link_libraries(cqmf2_ruby qmf2 ${RUBY_LIBRARY})