From eae259f3bc6f54d60b897d1223db440835deb6b0 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 27 Jan 2020 03:32:08 -0500 Subject: [PATCH] CMake: include CTest to get BUILD_ENABLE --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 870cb9caa..8527fbd74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,6 +372,9 @@ target_compile_definitions(notcurses-view endif() # Testing +if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) + include(CTest) +endif() file(GLOB TESTSRCS CONFIGURE_DEPENDS tests/*.cpp) add_executable(notcurses-tester ${TESTSRCS}) target_include_directories(notcurses-tester