* runtime - loading and translating * design-time - works with *.ts file (pip_tr utility) * compile-time - CMake macro for compile *.ts
24 lines
783 B
CMake
24 lines
783 B
CMake
list(APPEND PIP_UTILS_LIST "pip_tr")
|
|
set(PIP_UTILS_LIST ${PIP_UTILS_LIST} PARENT_SCOPE)
|
|
import_version(pip_tr PIP)
|
|
set_deploy_property(pip_tr
|
|
LABEL "PIP Translator"
|
|
FULLNAME "${PIP_DOMAIN}.pip_tr"
|
|
COMPANY "${PIP_COMPANY}"
|
|
INFO "Platform-Independent Primitives")
|
|
make_rc(pip_tr _RC)
|
|
set(TS_LIST)
|
|
if (NOT CROSSTOOLS)
|
|
file(GLOB TS_LIST "${pip_ROOT_SRC}/lang/*.ts")
|
|
endif()
|
|
add_executable(pip_tr "main.cpp" "parser.h" "parser.cpp" ${_RC} ${TS_LIST})
|
|
target_link_libraries(pip_tr pip_qt_support pip)
|
|
if (DEFINED LIB)
|
|
install(TARGETS pip_tr DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
|
else()
|
|
install(TARGETS pip_tr DESTINATION bin)
|
|
endif()
|
|
if (NOT CROSSTOOLS)
|
|
add_custom_command(TARGET pip_tr POST_BUILD COMMAND "${CMAKE_COMMAND}" --build "${PIP_DLL_DIR}" --target pip_lang)
|
|
endif()
|