Revision 2114d1d2 client/python/CMakeLists.txt

View differences:

client/python/CMakeLists.txt
13 13
    set(SETUP_PY    "${CMAKE_CURRENT_SOURCE_DIR}/setup.py")
14 14
    set(OUTPUT      "${CMAKE_CURRENT_SOURCE_DIR}/build")
15 15

  
16
    add_custom_command(OUTPUT ${OUTPUT}
17
                       COMMAND ${PYTHON}
18
                       ARGS ${CMAKE_CURRENT_SOURCE_DIR}/setup.py build
19
                       )
20

  
21
    add_custom_target(target ALL DEPENDS ${OUTPUT})
16
    add_custom_command(OUTPUT ${OUTPUT} COMMAND ${PYTHON} ARGS ${SETUP_PY} build)
17
    add_custom_target(install_client ALL DEPENDS ${OUTPUT})
22 18

  
23 19
    install(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX})")
24 20
endif()
25

  
26

  

Also available in: Unified diff