set(input ${basename}.po)
set(output ${CMAKE_BINARY_DIR}/po/${basename}.ts)
add_custom_command(OUTPUT ${output}
- COMMAND ${QT_LCONVERT_EXECUTABLE}
+ COMMAND $<TARGET_PROPERTY:Qt5::lconvert,LOCATION>
ARGS -i ${input}
-of ts
-o ${output}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/po
# This is a workaround to add (duplicate) strings that lconvert missed to the .ts
- COMMAND ${QT_LUPDATE_EXECUTABLE}
+ COMMAND $<TARGET_PROPERTY:Qt5::lupdate,LOCATION>
ARGS -silent
${CMAKE_SOURCE_DIR}/src/
-ts ${output}
set(input ${CMAKE_BINARY_DIR}/po/${basename}.ts)
set(output ${CMAKE_BINARY_DIR}/po/${basename}.qm)
add_custom_command(OUTPUT ${output}
- COMMAND ${QT_LRELEASE_EXECUTABLE}
+ COMMAND $<TARGET_PROPERTY:Qt5::lrelease,LOCATION>
ARGS -silent
${input}
DEPENDS ${basename}.ts)