[CMake] I need help with compiling python scripts more than once
Simon Schäfer
Simon.Schaefer at sevenload.com
Thu Jan 29 09:27:44 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I want to automate the build of my python scripts which work together
with my C project, and on a later stage pack all together with CPack.
My problem for now is to automatically build my python code with cmake.
I am able to build it on the initial cmake build but on a following make
it will not recompile. Best would be if I can declare some files (the
.py files) on which the recompile will be redone.
My current CMakeLists.txt:
PROJECT ("python scripts")
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
FIND_PACKAGE(PythonInterp 2.4)
EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} -O -c "import compileall;
compileall.compile_dir('.', maxlevels=0, force=1);"
OUTPUT_VARIABLE pythonBuild
)
Regards
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmBvOAACgkQCT+234kh3agpGACfQ2c7L5t4WEUmEb2eMJhsx6dD
MmIAn2U03JD5vd/5hSIdTN8WDX2GTmZr
=vrYJ
-----END PGP SIGNATURE-----
More information about the CMake
mailing list