Skip to content

Commit

Permalink
Small update for cmake rules for Qt5LinguistTools
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jun 19, 2020
1 parent bd33c54 commit 5cd1dd0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions po/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,19 @@ ENDIF()

FIND_PACKAGE(Qt5LinguistTools REQUIRED)
GET_TARGET_PROPERTY(lupdate_executable Qt5::lupdate IMPORTED_LOCATION)
GET_FILENAME_COMPONENT(qtbindirectory ${lupdate_executable} PATH)
SET(lconvert_executable "${qtbindirectory}/lconvert")
IF(EXISTS "${lupdate_executable}")
MESSAGE(STATUS "Found lupdate: ${lupdate_executable}")
ELSE()
MESSAGE(STATUS "Could NOT find lupdate (missing: LUPDATE_EXECUTABLE)")
ENDIF()
GET_TARGET_PROPERTY(lconvert_executable Qt5::lconvert IMPORTED_LOCATION)
IF(EXISTS "${lconvert_executable}")
MESSAGE(STATUS "Found lconvert: ${lconvert_executable}")
ELSE()
MESSAGE(STATUS "Could NOT find lconvert (missing: LCONVERT_EXECUTABLE)")
ENDIF()
#GET_FILENAME_COMPONENT(qtbindirectory ${lupdate_executable} PATH)
#SET(lconvert_executable "${qtbindirectory}/lconvert")

# Creates translations directory if it doesn't exist
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/translations)
Expand Down

0 comments on commit 5cd1dd0

Please sign in to comment.