Changeset View
Changeset View
Standalone View
Standalone View
step/data/CMakeLists.txt
1 | if(CURRENT_LANG) | | |||
---|---|---|---|---|---|
2 | set(STEP_BUILD_TRANSLATIONS 1) | | |||
3 | endif(CURRENT_LANG) | | |||
4 | | ||||
5 | if(STEP_BUILD_TRANSLATIONS) | | |||
6 | | ||||
7 | find_package(PythonInterp) | 1 | find_package(PythonInterp) | ||
8 | set(EXTRACTXML_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/extractxml) | 2 | set(EXTRACTXML_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/extractxml) | ||
9 | 3 | | |||
10 | if(PYTHON_EXECUTABLE) | 4 | if(PYTHON_EXECUTABLE) | ||
11 | 5 | | |||
12 | # STEP_PROCESS_XML_TRANSLATION(<lang> <extractxml_args> [ALL] [INSTALL_DESTINATION <dir>] <xml1> <xml2> ...) | 6 | # STEP_PROCESS_XML_TRANSLATION(<lang> <extractxml_args> [ALL] [INSTALL_DESTINATION <dir>] <xml1> <xml2> ...) | ||
13 | macro(STEP_PROCESS_XML_TRANSLATION _lang _po_file _extractxml_args) | 7 | macro(STEP_PROCESS_XML_TRANSLATION _lang _po_file _extractxml_args) | ||
14 | set(_xmlfiles_tr) | 8 | set(_xmlfiles_tr) | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
58 | endmacro(STEP_PROCESS_XML_TRANSLATION) | 52 | endmacro(STEP_PROCESS_XML_TRANSLATION) | ||
59 | 53 | | |||
60 | else(PYTHON_EXECUTABLE) | 54 | else(PYTHON_EXECUTABLE) | ||
61 | message("Python executable NOT found - Step data translations will not be build") | 55 | message("Python executable NOT found - Step data translations will not be build") | ||
62 | macro(STEP_PROCESS_XML_TRANSLATION) | 56 | macro(STEP_PROCESS_XML_TRANSLATION) | ||
63 | endmacro(STEP_PROCESS_XML_TRANSLATION) | 57 | endmacro(STEP_PROCESS_XML_TRANSLATION) | ||
64 | endif(PYTHON_EXECUTABLE) | 58 | endif(PYTHON_EXECUTABLE) | ||
65 | 59 | | |||
66 | endif(STEP_BUILD_TRANSLATIONS) | | |||
67 | | ||||
68 | add_subdirectory(objectinfo) | 60 | add_subdirectory(objectinfo) | ||
69 | add_subdirectory(examples) | 61 | add_subdirectory(examples) | ||
70 | add_subdirectory(tutorials) | 62 | add_subdirectory(tutorials) | ||
71 | 63 | |