Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Tyler Roscoe
On Thu, Jan 29, 2009 at 07:04:48PM +0100, Simon Schäfer wrote: > in the highest level CMakeLists.txt: > add_subdirectroy(pyProject) > add_subdirectroy(cProject) Yup. > first try: > > ADD_CUSTOM_TARGET(pyCustom COMMAND ${PYTHON_EXECUTABLE} -O -c "import > compileall; compileall.compile_dir('./pyP

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Simon Schäfer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tyler wrote: > You mean the highest level? Maybe you visualize trees upside-down from > how I do it, but you're asking about integrating both pyProject and > cProject from the directory that houses both of those directories, > right? Yes I meant highes

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Tyler
On Thu, Jan 29, 2009 at 05:58:11PM +0100, Simon Schäfer wrote: > well i have two projet which should both be build with cmake for example: > > ./CMakeLists.txt > ./pyProject/CMakeLists.txt > ./cProject/CMakeLists.txt > > now I want to compile all together when I am at the lowest level. I You mea

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Simon Schäfer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tyler Roscoe schrieb: > On Thu, Jan 29, 2009 at 03:27:44PM +0100, Simon Schäfer wrote: >> 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 fo

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Tyler Roscoe
On Thu, Jan 29, 2009 at 03:27:44PM +0100, Simon Schäfer wrote: > 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

[CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Simon Schäfer
-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 initia