From c3660d7d96b5861a0850a124de21f858adc8e09a Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 12 Jan 2020 20:35:47 +0100 Subject: [PATCH] Translations: Fix OOT build --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.30.2