From: Soeren Apel Date: Sun, 12 Jan 2020 19:35:47 +0000 (+0100) Subject: Translations: Fix OOT build X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c3660d7d96b5861a0850a124de21f858adc8e09a;p=pulseview.git Translations: Fix OOT build --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 885d9189..ff052ce1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,7 @@ ## ## Copyright (C) 2012 Joel Holdsworth ## Copyright (C) 2012-2013 Alexandru Gagniuc +## Copyright (C) 2020 Soeren Apel ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -426,13 +427,14 @@ qt5_add_resources(pulseview_RESOURCES_RCC ${pulseview_RESOURCES}) #= Translations #------------------------------------------------------------------------------- -file(GLOB TS_FILES l10n/*.ts) -set_property(SOURCE ${TS_FILES} PROPERTY OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/l10n) +file(GLOB TS_FILES ${CMAKE_SOURCE_DIR}/l10n/*.ts) +set_property(SOURCE ${TS_FILES} PROPERTY OUTPUT_LOCATION ${CMAKE_BINARY_DIR}/l10n) +configure_file("translations.qrc" "translations.qrc" COPYONLY) qt5_add_translation(QM_FILES ${TS_FILES}) qt5_create_translation(QM_FILES ${pulseview_SOURCES} ${TS_FILES}) -qt5_add_resources(pulseview_RESOURCES_RCC translations.qrc) +qt5_add_resources(pulseview_RESOURCES_RCC ${CMAKE_BINARY_DIR}/translations.qrc) #=============================================================================== #= Global Definitions