ENH: Cleanup example a bit
This commit is contained in:
parent
baee28ce9b
commit
b691517eeb
|
@ -1,10 +1,9 @@
|
||||||
SET(language "tcl")
|
SET(language "python")
|
||||||
|
|
||||||
|
|
||||||
PROJECT(example_${language}_class)
|
PROJECT(example_${language}_class)
|
||||||
|
|
||||||
FIND_PACKAGE(SWIG)
|
FIND_PACKAGE(SWIG REQUIRED)
|
||||||
IF(SWIG_FOUND)
|
|
||||||
INCLUDE(${SWIG_USE_FILE})
|
INCLUDE(${SWIG_USE_FILE})
|
||||||
|
|
||||||
IF(${language} MATCHES python)
|
IF(${language} MATCHES python)
|
||||||
|
@ -48,4 +47,3 @@ IF(SWIG_FOUND)
|
||||||
SWIG_ADD_MODULE(example "${language}"
|
SWIG_ADD_MODULE(example "${language}"
|
||||||
example.i example.cxx)
|
example.i example.cxx)
|
||||||
SWIG_LINK_LIBRARIES(example ${SWIG_LANG_LIBRARIES})
|
SWIG_LINK_LIBRARIES(example ${SWIG_LANG_LIBRARIES})
|
||||||
ENDIF(SWIG_FOUND)
|
|
||||||
|
|
Loading…
Reference in New Issue