diff options
| author | Aurélien Gâteau <agateau@kde.org> | 2014-05-13 15:52:39 +0200 |
|---|---|---|
| committer | Aurélien Gâteau <agateau@kde.org> | 2014-05-13 17:20:18 +0200 |
| commit | b02aac922797f9dbaaf35de54de61a1167984e51 (patch) | |
| tree | c6d97323236613d42ecff4510b2b08aa073ebd59 /tests/ECMPoQmToolsTest/CMakeLists.txt | |
| parent | 0aef7600debb1d3d1b18aa77149c93ef118c4208 (diff) | |
| download | extra-cmake-modules-b02aac922797f9dbaaf35de54de61a1167984e51.tar.gz extra-cmake-modules-b02aac922797f9dbaaf35de54de61a1167984e51.tar.bz2 | |
More complete testing of ECMPoQmTools
- Test calling ecm_process_po_files_as_qm() without INSTALL_DESTINATION argument
- Test calling ecm_install_po_files_as_qm() with CMAKE_INSTALL_LOCALEDIR set
and with LOCALE_INSTALL_DIR set
REVIEW: 118114
Diffstat (limited to 'tests/ECMPoQmToolsTest/CMakeLists.txt')
| -rw-r--r-- | tests/ECMPoQmToolsTest/CMakeLists.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/ECMPoQmToolsTest/CMakeLists.txt b/tests/ECMPoQmToolsTest/CMakeLists.txt index eabf2b88..3dcb3513 100644 --- a/tests/ECMPoQmToolsTest/CMakeLists.txt +++ b/tests/ECMPoQmToolsTest/CMakeLists.txt @@ -9,14 +9,33 @@ file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}") include(ECMPoQmTools) +# Should create ${CMAKE_CURRENT_BINARY_DIR}/qmloader.cpp and set QMLOADER_PATH +# to its path ecm_create_qm_loader(QMLOADER_PATH catalog) +# Should create a process-and-install.qm file and install it ecm_process_po_files_as_qm(fr ALL INSTALL_DESTINATION share/locale - PO_FILES test.po + PO_FILES process-and-install.po ) +# Should create a only-process.qm file, without installing it +ecm_process_po_files_as_qm(fr ALL + PO_FILES only-process.po +) + +# Should create a bunch of .qm files and install them in share/locale ecm_install_po_files_as_qm(po) +# Should create a bunch of .qm files and install them in +# ${CMAKE_INSTALL_LOCALEDIR} +set(CMAKE_INSTALL_LOCALEDIR custom-dir1) +ecm_install_po_files_as_qm(po-custom-dir1) + +# Should create a bunch of .qm files and install them in +# ${LOCALE_INSTALL_DIR} +set(LOCALE_INSTALL_DIR custom-dir2) +ecm_install_po_files_as_qm(po-custom-dir2) + # this will be run by CTest configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY) |
