diff options
author | xantares <xantares09@hotmail.com> | 2014-04-19 10:29:39 +0200 |
---|---|---|
committer | xantares <xantares09@hotmail.com> | 2014-04-19 10:29:39 +0200 |
commit | 6a8f56d42603b67687e6f9f1f29cbd430d74dbfb (patch) | |
tree | 9c496eae8ab7d39df5d82e50bd7c048b10d2acf3 | |
parent | a552139f403029eb8d1ad5eb2806c6f111180620 (diff) | |
download | swig-6a8f56d42603b67687e6f9f1f29cbd430d74dbfb.tar.gz |
Added lua support
-rw-r--r-- | Examples/test-suite/CMakeLists.txt | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/Examples/test-suite/CMakeLists.txt b/Examples/test-suite/CMakeLists.txt index f5faf5e86..1490fcee6 100644 --- a/Examples/test-suite/CMakeLists.txt +++ b/Examples/test-suite/CMakeLists.txt @@ -396,7 +396,7 @@ set ( CPP_TEST_CASES wrapmacro) # TODO: remove me, for test! -# set (CPP_TEST_CASES array_member bools varargs_overload virtual_destructor) +set (CPP_TEST_CASES array_member bools varargs_overload virtual_destructor) set ( LANGUAGES ) @@ -445,6 +445,8 @@ macro(add_tests language) if(WIN32 AND NOT CYGWIN) set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".pyd") endif() + elseif(${language} STREQUAL lua) + set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "") elseif(${language} STREQUAL ruby) set_target_properties(${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "") endif () @@ -466,9 +468,14 @@ macro(add_tests language) add_dependencies(check-test-suite check-${language}-test-suite) endmacro() -option ( USE_PYTHON "python" ON ) -if ( USE_PYTHON ) - add_subdirectory ( python ) + + + + + +option ( USE_CSHARP "csharp" OFF ) +if ( USE_CSHARP ) + add_subdirectory ( csharp ) endif () option ( USE_JAVA "java" OFF ) @@ -476,18 +483,22 @@ if ( USE_JAVA ) add_subdirectory ( java ) endif () -option ( USE_RUBY "ruby" ON ) -if ( USE_RUBY ) - add_subdirectory ( ruby ) -endif () +option ( USE_LUA "lua" ON ) +if ( USE_LUA ) + add_subdirectory ( lua ) +endif() option ( USE_OCTAVE "octave" OFF ) if ( USE_OCTAVE ) add_subdirectory ( octave ) endif() -option ( USE_CSHARP "csharp" OFF ) -if ( USE_CSHARP ) - add_subdirectory ( csharp ) +option ( USE_PYTHON "python" ON ) +if ( USE_PYTHON ) + add_subdirectory ( python ) endif () +option ( USE_RUBY "ruby" ON ) +if ( USE_RUBY ) + add_subdirectory ( ruby ) +endif () |