[CMake] cmake PyQT/SIP
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Thu Dec 2 02:25:57 EST 2010
On 2010-12-02 06:32+0100 Michael Wild wrote:
> On 12/02/2010 12:37 AM, luxInteg wrote:
>> On Tuesday 30 November 2010 22:43:34 luxInteg wrote:
>>> Greetings
>>>
>>> I an learnig cmake.
>>
>> My test project is as follows:-
>> linux machine with pyQt4, sip-4.10.2,qt-4.6.2 and cmake-2.8.2
>>
>> ---stepA: I have a file -fileA.sip.
>> ---stepB: Upon execution of fileA.sip two files files -fileC.cpp and
>> fileD.cpp result,
>> ---stepC: fileC.cpp and fileD,cpp are compiled into a shared library.
>>
>> I am ok with stepC. I do not know how to carry out step B execution within
>> cmake.
>>
>> advice would be appreciated.
>>
>> sincerely
>> luxInteg
>
>
> Use ADD_CUSTOM_COMMAND.
@Michael: that advice is not correct. add_custom_command sets up a
command to be run at "make" time. Instead, the execute_process command
should be used to run a command at "CMake" time which is what the OP
needs to generate his *.cpp files.
@LuxInteg: See the CMakeLists.txt file at
http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/bindings/qt_gui/pyqt4/
for an example of generating source code with sip.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the CMake
mailing list