hlrc / tts_bridge / mary / CMakeLists.txt @ bd86bb92
History | View | Annotate | Download (676 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 | |||
7 | find_program(PYTHON "python") |
||
8 | |||
9 | if (PYTHON) |
||
10 | set(SETUP_PY "${CMAKE_CURRENT_SOURCE_DIR}/setup.py") |
||
11 | set(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/build") |
||
12 | |||
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}) |
||
19 | |||
20 | install(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX})") |
||
21 | endif() |
||
22 |