Mercurial > trustbridge
comparison ui/CMakeLists.txt @ 411:413b29f6758f
Add translation infrastructure and a file for the Administrator application
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 16 Apr 2014 16:05:46 +0000 |
parents | 09bb19e5e369 |
children | 16b6d5686835 |
comparison
equal
deleted
inserted
replaced
410:3132ba0a305d | 411:413b29f6758f |
---|---|
7 | 7 |
8 include_directories(${Qt5Widgets_INCLUDE_DIRS}) | 8 include_directories(${Qt5Widgets_INCLUDE_DIRS}) |
9 include_directories(${POLARSSL_INCLUDE_DIR}) | 9 include_directories(${POLARSSL_INCLUDE_DIR}) |
10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common) | 10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common) |
11 add_definitions(${Qt5Widgets_DEFINITIONS}) | 11 add_definitions(${Qt5Widgets_DEFINITIONS}) |
12 | |
13 find_package(Qt5LinguistTools) | |
12 | 14 |
13 set(CERTIFICATELIST_SOURCES | 15 set(CERTIFICATELIST_SOURCES |
14 ${CMAKE_CURRENT_SOURCE_DIR}/certificatelist.cpp | 16 ${CMAKE_CURRENT_SOURCE_DIR}/certificatelist.cpp |
15 ${CMAKE_CURRENT_SOURCE_DIR}/certificate.cpp | 17 ${CMAKE_CURRENT_SOURCE_DIR}/certificate.cpp |
16 ) | 18 ) |
106 ${EXTRA_STATIC_LIBS} | 108 ${EXTRA_STATIC_LIBS} |
107 ${PROFILING_LIBS}) | 109 ${PROFILING_LIBS}) |
108 | 110 |
109 set(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_SOURCES}) | 111 set(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_SOURCES}) |
110 qt5_add_resources(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_RESOURCES}) | 112 qt5_add_resources(ADMINSTRATOR_SOURCES_WITH_RESOURCES ${ADMINSTRATOR_RESOURCES}) |
111 add_executable(administrator ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}) | 113 |
114 if(Qt5LinguistTools_FOUND) | |
115 qt5_create_translation(ADMINISTRATOR_TRANSLATION ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} | |
116 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator.ts) | |
117 add_executable(administrator ${ADMINSTRATOR_SOURCES_WITH_RESOURCES} ${ADMINISTRATOR_TRANSLATION}) | |
118 else() | |
119 message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.") | |
120 endif() | |
112 | 121 |
113 target_link_libraries(administrator Qt5::Widgets | 122 target_link_libraries(administrator Qt5::Widgets |
114 trustbridge_common | 123 trustbridge_common |
115 ${POLARSSL_LIBRARIES} | 124 ${POLARSSL_LIBRARIES} |
116 ${EXTRA_STATIC_LIBS} | 125 ${EXTRA_STATIC_LIBS} |