Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 18287 → Rev 18288

/trunk/Scribus/resources/translations/po/CMakeLists.txt
2,6 → 2,11
"${CMAKE_SOURCE_DIR}/scribus"
)
 
SET(LRELEASE_EXECUTABLE ${QT_LRELEASE_EXECUTABLE})
IF (USE_QT5)
SET(LRELEASE_EXECUTABLE lrelease)
ENDIF (USE_QT5)
 
#Install our qm files, selected from *.qm in this directory
FILE( GLOB SCRIBUS_TS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.ts )
MESSAGE(STATUS ${CMAKE_CURRENT_SOURCE_DIR})
27,7 → 32,7
#MESSAGE(STATUS "You want to install ${LANGSTR}:${WANTED_LANG}")
SET(QM_FILENAME "scribus.${LANGSTR}.qm")
ADD_CUSTOM_TARGET("release_ts_${LANGSTR}" ALL
COMMAND lrelease ${TS_FILEPATH} -silent -qm ${QM_FILENAME}
COMMAND ${LRELEASE_EXECUTABLE} ${TS_FILEPATH} -silent -qm ${QM_FILENAME}
DEPENDS ${TS_FILEPATH}
)
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/${QM_FILENAME}" DESTINATION ${SHAREDIR}/translations)
42,7 → 47,7
STRING(REPLACE "." "" LANGSTR ${LANGSTR})
SET(QM_FILENAME "scribus.${LANGSTR}.qm")
ADD_CUSTOM_TARGET("release_ts_${LANGSTR}" ALL
COMMAND lrelease ${TS_FILEPATH} -silent -qm ${QM_FILENAME}
COMMAND ${LRELEASE_EXECUTABLE} ${TS_FILEPATH} -silent -qm ${QM_FILENAME}
DEPENDS ${TS_FILEPATH}
)
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/${QM_FILENAME}" DESTINATION ${SHAREDIR}/translations)