hlrc / tts_bridge / mary / CMakeLists.txt @ c6fcfba9
History | View | Annotate | Download (588 Bytes)
1 | bd2a824e | Simon Schulz | ### Maintainer: sschulz,gwalck[@techfak.uni-bielefeld.de] ### |
---|---|---|---|
2 | cmake_minimum_required(VERSION 2.8) |
||
3 | PROJECT(hlrc_tts_bridge_mary) |
||
4 | SET(CMAKE_BUILD_TYPE distribution) |
||
5 | |||
6 | find_program(PYTHON "python") |
||
7 | |||
8 | if (PYTHON) |
||
9 | set(SETUP_PY "${CMAKE_CURRENT_SOURCE_DIR}/setup.py") |
||
10 | set(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/build") |
||
11 | |||
12 | 1e1da985 | Robert Haschke | add_custom_command(OUTPUT ${OUTPUT} COMMAND ${PYTHON} ARGS ${SETUP_PY} build) |
13 | add_custom_target(install_tts_bridge ALL DEPENDS ${OUTPUT}) |
||
14 | bd2a824e | Simon Schulz | |
15 | install(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX})") |
||
16 | endif() |