diff options
author | Stanislav Ionascu <stanislav.ionascu@gmail.com> | 2015-02-08 12:50:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-20 14:25:11 (GMT) |
commit | f85db2f32358e6de921aba7d1cb8ecb81da934c0 (patch) | |
tree | 2f4944d47d14c8b11b58ca7dbd0e7664fb3c22c6 /Tests | |
parent | 380db3de00bd74f01781ea93e9ba9cebdea000cc (diff) | |
download | CMake-f85db2f32358e6de921aba7d1cb8ecb81da934c0.zip CMake-f85db2f32358e6de921aba7d1cb8ecb81da934c0.tar.gz CMake-f85db2f32358e6de921aba7d1cb8ecb81da934c0.tar.bz2 |
Qbs: Add new 'extra' generator for qbs project files
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 40bea51..5fa7044 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -560,7 +560,21 @@ if(BUILD_TESTING) --test-command Simple) list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Simple_KDevelop3Generator") endif () - + # check for the Qbs generator + if ("${cmakeOutput}" MATCHES Qbs) + add_test(Simple_QbsGenerator ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/Simple" + "${CMake_BINARY_DIR}/Tests/Simple_QbsGenerator" + --build-two-config + --build-generator "Qbs - Unix Makefiles" + --build-generator-platform "${CMAKE_GENERATOR_PLATFORM}" + --build-generator-toolset "${CMAKE_GENERATOR_TOOLSET}" + --build-project Simple + --build-options ${build_options} + --test-command Simple) + list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Simple_QbsGenerator") + endif () endif() # test for correct sub-project generation |