onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 1 | get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) |
| 2 | project(${PROJECT_NAME}) |
| 3 | |
onqtam | 61954c3 | 2017-04-16 17:22:44 +0300 | [diff] [blame] | 4 | doctest_add_executable(${PROJECT_NAME} main.cpp) |
onqtam | 26c2008 | 2017-04-16 17:38:41 +0300 | [diff] [blame] | 5 | target_link_libraries(${PROJECT_NAME} doctest) |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 6 | |
onqtam | db5eee9 | 2016-09-15 17:12:50 +0300 | [diff] [blame] | 7 | doctest_add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>) |