[CMake] Various problems deploying a python module

Janosch Peters jp at binford3000.de
Thu Jun 17 13:13:03 EDT 2010


On 2010-06-17 16:23:09 +0200, Janosch Peters said:
> 3. Copy python files during installation
> 
> The python module needs some python files along with the compiled C
> module. Currently, I just copy all the stuff using cmakes file()
> command. That means, all files are created when the user types in
> "cmake .". It would be better if the files would not be copied until
> the user says "make install".
> 
> Is there a way that the "file()" commands are somehow converted to
> similar commands in the makefile?

Ok I found out myself that this can be done with the INSTALL command, too.


--
Janosch




More information about the CMake mailing list