diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-30 18:27:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-04-30 18:27:03 (GMT) |
commit | 51d6c66431ba68af3cd57972f7ac99dc0fdf7389 (patch) | |
tree | 5e001a93c13e440564ae94778d7f54f72c00407d /Tests/SwigTest | |
parent | d0fd0b55cdf52008819989b655e16e29f1060902 (diff) | |
download | CMake-51d6c66431ba68af3cd57972f7ac99dc0fdf7389.zip CMake-51d6c66431ba68af3cd57972f7ac99dc0fdf7389.tar.gz CMake-51d6c66431ba68af3cd57972f7ac99dc0fdf7389.tar.bz2 |
ENH: link in more than just python
Diffstat (limited to 'Tests/SwigTest')
-rw-r--r-- | Tests/SwigTest/CMakeLists.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Tests/SwigTest/CMakeLists.txt b/Tests/SwigTest/CMakeLists.txt index 9fbb1f4..ba3277b 100644 --- a/Tests/SwigTest/CMakeLists.txt +++ b/Tests/SwigTest/CMakeLists.txt @@ -1,4 +1,4 @@ -SET(language "python") +SET(language "tcl") PROJECT(example_${language}_class) @@ -10,27 +10,33 @@ IF(SWIG_FOUND) IF(${language} MATCHES python) FIND_PACKAGE(PythonLibs) INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH}) + SET(SWIG_LANG_LIBRARIES ${PYTHON_LIBRARIES}) ENDIF(${language} MATCHES python) IF(${language} MATCHES perl) FIND_PACKAGE(PerlLibs) INCLUDE_DIRECTORIES(${PERL_INCLUDE_PATH}) ADD_DEFINITIONS(${PERL_EXTRA_C_FLAGS}) + SET(SWIG_LANG_LIBRARIES ${PERL_LIBRARY}) ENDIF(${language} MATCHES perl) IF(${language} MATCHES tcl) FIND_PACKAGE(TCL) INCLUDE_DIRECTORIES(${TCL_INCLUDE_PATH}) + SET(SWIG_LANG_LIBRARIES ${TCL_LIBRARY}) ENDIF(${language} MATCHES tcl) IF(${language} MATCHES ruby) FIND_PACKAGE(Ruby) INCLUDE_DIRECTORIES(${RUBY_INCLUDE_PATH}) + SET(SWIG_LANG_LIBRARIES ${RUBY_LIBRARY}) ENDIF(${language} MATCHES ruby) IF(${language} MATCHES php4) FIND_PACKAGE(PHP4) - INCLUDE_DIRECTORIES(${PHP4_INCLUDE_PATH}) + INCLUDE_DIRECTORIES(${PHP4_INCLUDE_PATH}) + SET(SWIG_LANG_LIBRARIES ${PHP4_LIBRARY}) ENDIF(${language} MATCHES php4) IF(${language} MATCHES pike) FIND_PACKAGE(Pike) INCLUDE_DIRECTORIES(${PIKE_INCLUDE_PATH}) + SET(SWIG_LANG_LIBRARIES ${PIKE_LIBRARY}) ENDIF(${language} MATCHES pike) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) @@ -41,5 +47,5 @@ IF(SWIG_FOUND) SET_SOURCE_FILES_PROPERTIES(example.i PROPERTIES SWIG_FLAGS "-includeall") SWIG_ADD_MODULE(example "${language}" example.i example.cxx) - SWIG_LINK_LIBRARIES(example ${PYTHON_LIBRARY}) + SWIG_LINK_LIBRARIES(example ${SWIG_LANG_LIBRARIES}) ENDIF(SWIG_FOUND) |