Hi All,<div><br></div><div>I've been using CMake for a little while now, but not with python.</div><div><br></div><div>I have something like this in my CMakeLists.txt file...</div><div><br></div><div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">message(STATUS " ${III} Loading FUNCWIRE_MINION...")</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"><br></span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">if(ENABLE_FUNCWIRE_MINION)</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"> message(STATUS " ${GGG} Python build...")</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"> execute_process(COMMAND cd ${CMAKE_SOURCE_DIR}/funcwire-minion/ && ${PYTHON} setup.py build)</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">endif(ENABLE_FUNCWIRE_MINION)</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"><br>
</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">install(CODE "EXECUTE_PROCESS(COMMAND cd ${CMAKE_SOURCE_DIR}/funcwire-minion/ && ${PYTHON} setup.py install)")</span></div>
<div><br></div><div>...however it doesn't quite work, before putting too much work into finding what the problem is, could someone point out if I'm even on the right track, or if there is a better way to do this?</div>
<div><br></div><div>Nima<br></div><div><br></div>-- <br>Nima Talebi</div><div><a href="http://ai.autonomy.net.au/">http://ai.autonomy.net.au/</a> <br><br>
</div>