Skip to content

Commit

Permalink
Factored out repetitive commands from Ruby cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed May 4, 2009
1 parent 2f3db00 commit b1dee85
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
8 changes: 2 additions & 6 deletions src/mappings/swig/ruby/affyio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY biolib)

FIND_PACKAGE(MapRuby)

ADD_TEST(TestRubyAffyio env PATH=${MODULE_SOURCE_PATH}:$PATH ${RUBY_EXECUTABLE} -I../${M_NAME} ./../test/test_${M_NAME}.rb)

INSTALL(TARGETS ${M_MODULE}
LIBRARY DESTINATION ${RUBY_LIB_PATH}/biolib
)

TEST_RUBY_BINDINGS()
INSTALL_RUBY_BINDINGS()

13 changes: 2 additions & 11 deletions src/mappings/swig/ruby/example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Make biolib_ruby_example.so

cmake_minimum_required(VERSION 2.6)

ENABLE_TESTING()

SET (M_NAME example)
Expand All @@ -17,11 +13,6 @@ SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY biolib)

FIND_PACKAGE(MapRuby)

ADD_TEST(TestRubyExample env PATH=${MODULE_SOURCE_PATH}:$PATH ${RUBY_EXECUTABLE} -I../${M_NAME} ./../test/test_${M_NAME}.rb)

install(TARGETS ${M_MODULE}
DESTINATION ${RUBY_LIB_PATH}/biolib
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION bin )
TEST_RUBY_BINDINGS()
INSTALL_RUBY_BINDINGS()

9 changes: 2 additions & 7 deletions src/mappings/swig/ruby/staden_io_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Make biolib_ruby_staden_io_lib module

cmake_minimum_required(VERSION 2.6)
ENABLE_TESTING()

Expand All @@ -20,10 +18,7 @@ SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY biolib)

FIND_PACKAGE(MapRuby)

ADD_TEST(TestRubyStadenIOLib env PATH=${MODULE_SOURCE_PATH}/io_lib:$PATH ${RUBY_EXECUTABLE} -I../${M_NAME} ./../test/test_${M_NAME}.rb)

INSTALL(TARGETS ${M_MODULE}
LIBRARY DESTINATION ${RUBY_LIB_PATH}/biolib
)
TEST_RUBY_BINDINGS()
INSTALL_RUBY_BINDINGS()


2 changes: 1 addition & 1 deletion tools/cmake-support
Submodule cmake-support updated 2 files
+1 −0 modules/FindMapRuby.cmake
+25 −0 modules/RubyMacros.cmake

0 comments on commit b1dee85

Please sign in to comment.