[Cmake] swig support
Andy Cedilnik
andy . cedilnik at kitware . com
07 Jan 2003 10:02:25 -0500
Hi Solo,
There is no direct support for swig in CMake, but you can always use
custom commands and custom targets to achieve anything. For example, if
you have access to VTK source code, please check how we did java
building (VTK/Wrapping/Java). Also in FAQ (5.1), there is a solution on
how to use CMake for building latex documents.
In general you do something like:
SET(SOURCES
foo.c
bar.c
generated.c)
SET_SOURCE_FILE_PROEPRTIES(generated.c GENERATED)
ADD_EXECUTABLE(foobar ${SOURCES})
ADD_CUSTOM_COMMAND(TARGET foobar
COMMAND swig # or something
ARGUMENTS generated.i -o generated.c
SOURCE generated.i
OUTPUTS genedared.c)
Andy
On Mon, 2003-01-06 at 15:13, solo turn wrote:
> does cmake support swig, or plans to support swig?