onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame^] | 1 | cmake_minimum_required(VERSION 2.8) |
| 2 | |
| 3 | get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) |
| 4 | project(${PROJECT_NAME}) |
| 5 | |
| 6 | include(../../scripts/common.cmake) |
| 7 | |
| 8 | include_directories("../../doctest/") |
| 9 | |
| 10 | add_executable(${PROJECT_NAME} main.cpp test.cpp) |
| 11 | |
| 12 | # queries |
| 13 | add_test(NAME help COMMAND $<TARGET_FILE:${PROJECT_NAME}> -h) |
| 14 | add_test(NAME version COMMAND $<TARGET_FILE:${PROJECT_NAME}> -v) |
| 15 | add_test(NAME count COMMAND $<TARGET_FILE:${PROJECT_NAME}> -c) |
| 16 | add_test(NAME list_test_cases COMMAND $<TARGET_FILE:${PROJECT_NAME}> -ltc) |
| 17 | add_test(NAME list_test_suites COMMAND $<TARGET_FILE:${PROJECT_NAME}> -lts) |
| 18 | |
| 19 | |
| 20 | add_test(NAME successful COMMAND $<TARGET_FILE:${PROJECT_NAME}> -success=true -exit) |
| 21 | add_test(NAME abort_after COMMAND $<TARGET_FILE:${PROJECT_NAME}> -aa=3) |
| 22 | add_test(NAME first_last COMMAND $<TARGET_FILE:${PROJECT_NAME}> -f=2 -l=5) |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |