[CMake] SWIG interface file location
Clinton Stimpson
clinton at elemtech.com
Fri Feb 10 18:15:44 EST 2006
>Date: Fri, 10 Feb 2006 14:53:45 -0700
>From: James Bigler <bigler at cs.utah.edu>
>Subject: [CMake] SWIG interface file location
>To: cmake at cmake.org
>
>So I'm using SWIG to generate an interface file to python.
>
>Can I get the interface file (myfile.py) to be built in the library path?
>
>I need two things to run the interface. The myfile.py file and the
>_myfile.so library with all the c code. myfile.py gets placed in a
>subdirectory with myfilePYTHON_wrap.cxx. It works out much better to
>have myfile.py be in the same directory as _myfile.so.
>
>There doesn't seem to be any options to SWIG_ADD_MODULE that lets me
>specify the output directory.
>
>Thanks,
>James
>
>
Set the CMAKE_SWIG_OUTDIR variable, and the macro will give swig the
-outdir flag.
Clint
More information about the CMake
mailing list