[Cmake] swig support
Andy Cedilnik
andy.cedilnik at kitware.com
Tue Jan 7 10:02:25 EST 2003
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?
More information about the CMake
mailing list