mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Enabling testing in the CMakeList
... which allows to use "make test" and/or "ctest -V"
This commit is contained in:
parent
b031727fa2
commit
d0c6cd55ad
@ -1,6 +1,8 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
add_definitions("-std=c++1y")
|
||||
|
||||
enable_testing()
|
||||
|
||||
add_subdirectory(lint)
|
||||
add_subdirectory(test)
|
||||
add_subdirectory(example)
|
||||
|
@ -4,3 +4,5 @@ add_definitions("-std=c++1y")
|
||||
|
||||
add_executable(test-main test.cc)
|
||||
target_link_libraries(test-main pthread)
|
||||
|
||||
add_test(TestMain test-main)
|
||||
|
Loading…
Reference in New Issue
Block a user