Re: [CMake] Executing python though CMake and linking libraries

2016-11-28 Thread Kit Chambers
ng. I would recommend to use > absolute paths for the python interperter (there is a find_package module for > the interpreter) and maybe also for your script. The custom command support a > workingdirectory variable as far as i know. > > Hope that help you. > > Greeti

Re: [CMake] Executing python though CMake and linking libraries

2016-11-25 Thread Kit Chambers
lp you. > > Greetings > Tonka > >> Am 25.11.2016 um 10:04 schrieb Kit Chambers <kit.chambers...@gmail.com>: >> >> I have a Cmake custom target which runs a python script: >> >> add_custom_target(run >>COMMAND python myscript.p

[CMake] Executing python though CMake and linking libraries

2016-11-25 Thread Kit Chambers
I have a Cmake custom target which runs a python script: add_custom_target(run COMMAND python myscript.py ) And the script myscript.py imports a Compiled library import myproj.mylilb where mylib is actually a C++ library generated with python bindings