mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
CMake: include CTest to get BUILD_ENABLE
This commit is contained in:
parent
809caad8c0
commit
eae259f3bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user