davidre added a comment.
Output of cmake_minimum_required(VERSION 2.8.12) find_package(ECM) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) find_package(Qt5Widgets) find_package(KF5I18n) ki18n_wrap_ui(var test.ui) ki18n_wrap_ui(var test.uia) ki18n_wrap_ui(${CMAKE_CURRENT_SOURCE_DIR}/test.ui) ki18n_wrap_ui(/not/existing/path) with existing test.ui next to CMakeLists.txt: [...] CMake Error at /home/david/kde/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nMacros.cmake:55 (message): Cannot find ui file: test.ui Call Stack (most recent call first): CMakeLists.txt:7 (ki18n_wrap_ui) CMake Error at /home/david/kde/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nMacros.cmake:55 (message): Cannot find ui file: test.uia Call Stack (most recent call first): CMakeLists.txt:8 (ki18n_wrap_ui) -- Configuring incomplete, errors occurred! See also "/tmp/test/build/CMakeFiles/CMakeOutput.log". REPOSITORY R249 KI18n REVISION DETAIL https://phabricator.kde.org/D26670 To: davidre, #framework_syntax_highlighting, #localization, #build_system Cc: cullmann, ngraham, kossebau, kde-frameworks-devel, LeGast00n, GB_2, michaelh, bruns