Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ruby, lua, octave example targets
- Loading branch information
Showing
11 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FILE(GLOB LUA_EXAMPLES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.lua) | ||
LIST(REMOVE_ITEM LUA_EXAMPLES load.lua) | ||
|
||
FOREACH(EXAMPLE ${LUA_EXAMPLES}) | ||
STRING(REGEX REPLACE "(.*).lua" "\\1" EXAMPLE_NAME ${EXAMPLE}) | ||
add_test(NAME lua-${EXAMPLE_NAME} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
COMMAND ${} ${EXAMPLE}) | ||
set_property(TEST lua-${EXAMPLE_NAME} PROPERTY | ||
ENVIRONMENT "LUA_CPATH=${LUA_MODULAR_BUILD_DIR}/libmodshogun.so") | ||
ENDFOREACH() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FILE(GLOB OCTAVE_EXAMPLES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.m) | ||
|
||
FOREACH(EXAMPLE ${OCTAVE_EXAMPLES}) | ||
STRING(REGEX REPLACE "(.*).m" "\\1" EXAMPLE_NAME ${EXAMPLE}) | ||
add_test(NAME octave_modular-${EXAMPLE_NAME} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
COMMAND ${} ${EXAMPLE}) | ||
# set_property(TEST octave_modular-${EXAMPLE_NAME} PROPERTY | ||
# ENVIRONMENT "LUA_CPATH=${LUA_MODULAR_BUILD_DIR}/libmodshogun.so") | ||
ENDFOREACH() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FILE(GLOB RUBY_EXAMPLES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.rb) | ||
LIST(REMOVE_ITEM RUBY_EXAMPLES load.rb) | ||
|
||
FOREACH(EXAMPLE ${RUBY_EXAMPLES}) | ||
STRING(REGEX REPLACE "(.*).rb" "\\1" EXAMPLE_NAME ${EXAMPLE}) | ||
add_test(NAME ruby-${EXAMPLE_NAME} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
COMMAND ${RUBY_EXECUTABLE} ${EXAMPLE}) | ||
set_property(TEST ruby-${EXAMPLE_NAME} PROPERTY | ||
ENVIRONMENT "RUBYLIB=${RUBY_MODULAR_BINARY_DIR}") | ||
ENDFOREACH() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters