Revision 1e1da985

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

  
tts_bridge/mary/CMakeLists.txt
3 3
PROJECT(hlrc_tts_bridge_mary)
4 4
SET(CMAKE_BUILD_TYPE distribution)
5 5

  
6

  
7 6
find_program(PYTHON "python")
8 7

  
9 8
if (PYTHON)
10 9
    set(SETUP_PY    "${CMAKE_CURRENT_SOURCE_DIR}/setup.py")
11 10
    set(OUTPUT      "${CMAKE_CURRENT_SOURCE_DIR}/build")
12 11

  
13
    add_custom_command(OUTPUT ${OUTPUT}
14
                       COMMAND ${PYTHON}
15
                       ARGS ${CMAKE_CURRENT_SOURCE_DIR}/setup.py build
16
                       )
17

  
18
    add_custom_target(target2 ALL DEPENDS ${OUTPUT})
12
    add_custom_command(OUTPUT ${OUTPUT} COMMAND ${PYTHON} ARGS ${SETUP_PY} build)
13
    add_custom_target(install_tts_bridge ALL DEPENDS ${OUTPUT})
19 14

  
20 15
    install(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX})")
21 16
endif()
22

  
23

  

Also available in: Unified diff