From ce66bdf1e886a05cd178079e067ac0afbdbc41ae Mon Sep 17 00:00:00 2001 From: David Sansome Date: Thu, 3 Nov 2011 17:19:37 +0000 Subject: [PATCH] Always run uic on optional ui files so we can get translations out. It was supposed to do this already... --- cmake/OptionalSource.cmake | 6 +++++- src/CMakeLists.txt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake/OptionalSource.cmake b/cmake/OptionalSource.cmake index ebaa2b686..2b816984f 100644 --- a/cmake/OptionalSource.cmake +++ b/cmake/OptionalSource.cmake @@ -13,6 +13,10 @@ macro(optional_source TOGGLE) else(${TOGGLE}) list(APPEND OTHER_SOURCES ${OPTIONAL_SOURCE_SOURCES}) list(APPEND OTHER_SOURCES ${OPTIONAL_SOURCE_HEADERS}) - qt4_wrap_ui(OTHER_SOURCES ${OPTIONAL_SOURCE_UI}) + + set(_uic_sources) + qt4_wrap_ui(_uic_sources ${OPTIONAL_SOURCE_UI}) + list(APPEND OTHER_SOURCES ${_uic_sources}) + list(APPEND OTHER_UIC_SOURCES ${_uic_sources}) endif(${TOGGLE}) endmacro(optional_source) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e494c5bfd..e8271db5b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -626,6 +626,8 @@ set(RESOURCES ../data/data.qrc ) +set(OTHER_SOURCES) + set(LINGUAS "All" CACHE STRING "A space-seperated list of translations to compile in to Clementine, or \"None\".") if (LINGUAS STREQUAL "All") # build LANGUAGES from all existing .po files @@ -958,6 +960,7 @@ add_library(clementine_lib STATIC ${QRC} ${POT} ${PO} + ${OTHER_UIC_SOURCES} ) add_dependencies(clementine_lib pot)