Browse files

Started Ruby GSL map

  • Loading branch information...
1 parent b271ec9 commit 0dd92b109ac3513788373f61c78586b16b6eb263 @pjotrp committed Apr 11, 2009
Showing with 28 additions and 0 deletions.
  1. +25 −0 src/mappings/swig/ruby/gsl/CMakeLists.txt
  2. +3 −0 src/mappings/swig/ruby/gsl/ruby_gsl.i
View
25 src/mappings/swig/ruby/gsl/CMakeLists.txt
@@ -0,0 +1,25 @@
+cmake_minimum_required(VERSION 2.6)
+ENABLE_TESTING()
+
+SET (M_NAME gsl)
+# SET (M_VERSION 1.11.6)
+SET (INTERFACE ruby_${M_NAME}.i)
+
+IF(NOT BUILD_LIBS)
+ SET (CMAKE_MODULE_PATH ../../../../../cmake_modules)
+ENDIF(NOT BUILD_LIBS)
+
+SET (USE_SWIG_INCLUDEPATH "../../contrib/math--gsl/swig")
+
+# INCLUDE(CMakeBackwardCompatibilityC)
+SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ascilib)
+
+FIND_PACKAGE(MapRuby)
+
+ADD_TEST(TestRubyGSL ${RUBY_EXECUTABLE} -I../${M_NAME}/ascilib ./../test/test_${M_NAME}.rb)
+
+INSTALL(TARGETS ${M_MODULE}
+ LIBRARY DESTINATION ${RUBY_LIB_PATH}/ascilib
+)
+
+
View
3 src/mappings/swig/ruby/gsl/ruby_gsl.i
@@ -0,0 +1,3 @@
+%module gsl
+
+%include ../../gsl_common.i

0 comments on commit 0dd92b1

Please sign in to comment.