Skip to content

Commit

Permalink
Started Ruby GSL map
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Apr 11, 2009
1 parent b271ec9 commit 0dd92b1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 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
)


3 changes: 3 additions & 0 deletions 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.