Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #11 from luis-pereira/use-lxqt-translations-infra
Browse files Browse the repository at this point in the history
Drop the check on Qt5LinguistTools_FOUND
  • Loading branch information
luis-pereira committed Dec 10, 2014
2 parents 1cd941e + 9bbc05b commit 2f59a23
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions CMakeLists.txt
Expand Up @@ -9,7 +9,7 @@ find_package(Qt5Network REQUIRED)
find_package(KF5WindowSystem REQUIRED)

# for translations
find_package(Qt5LinguistTools)
find_package(Qt5LinguistTools REQUIRED)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
Expand Down Expand Up @@ -169,14 +169,10 @@ set(SCREENGRAB_QRC
qt5_wrap_ui(SCREENGRAB_UI_H ${SCREENGRAB_UI})
qt5_add_resources(QRC_SOURCES ${SCREENGRAB_QRC})

if(Qt5LinguistTools_FOUND)
message(STATUS "Generating localize ...")
file(GLOB SCREENGRAB_TS ${CMAKE_CURRENT_SOURCE_DIR}/translations/*.ts)
qt5_add_translation(SCREENGRAB_QMS ${SCREENGRAB_TS})
add_custom_target(translations ALL DEPENDS ${SCREENGRAB_QMS})
else()
message(FATAL_ERROR "Could NOT find Qt5LinguistTools")
endif()
message(STATUS "Generating localize ...")
file(GLOB SCREENGRAB_TS ${CMAKE_CURRENT_SOURCE_DIR}/translations/*.ts)
qt5_add_translation(SCREENGRAB_QMS ${SCREENGRAB_TS})
add_custom_target(translations ALL DEPENDS ${SCREENGRAB_QMS})

add_executable( screengrab ${SCREENGRAB_SRC} ${SCREENGRAB_UI_H} ${QRC_SOURCES} )

Expand Down

0 comments on commit 2f59a23

Please sign in to comment.