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