blob: ad68f65e99fc7b8a80b3aee2bd4a555d58a45db2 [file] [log] [blame]
onqtam4a655632016-05-26 14:20:52 +03001get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
2project(${PROJECT_NAME})
3
onqtam61954c32017-04-16 17:22:44 +03004doctest_add_executable(${PROJECT_NAME} main.cpp test.cpp)
onqtam26c20082017-04-16 17:38:41 +03005target_link_libraries(${PROJECT_NAME} doctest)
onqtam4a655632016-05-26 14:20:52 +03006
onqtamdb5eee92016-09-15 17:12:50 +03007doctest_add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)