Merge pull request #3062

f035478d Fix translations header generation when cross-compilating (Guillaume LE VAILLANT)
This commit is contained in:
Riccardo Spagni 2018-01-10 11:55:46 +01:00
commit d5dad4f0a2
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 7 additions and 1 deletions

View File

@ -398,7 +398,11 @@ endif()
add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP)
# Generate header for embedded translations
add_subdirectory(translations)
include(ExternalProject)
ExternalProject_Add(generate_translations_header
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/translations"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/translations"
INSTALL_COMMAND cmake -E echo "")
include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations")
add_subdirectory(external)

View File

@ -28,6 +28,8 @@
cmake_minimum_required(VERSION 2.8.7)
project(translations)
add_executable(generate_translations_header generate_translations_header.c)
find_program(LRELEASE lrelease)