Enabling testing in the CMakeList

... which allows to use "make test" and/or "ctest -V"
pull/20/head
hvellyr 8 years ago committed by gck
parent b031727fa2
commit d0c6cd55ad
  1. 2
      CMakeLists.txt
  2. 2
      test/CMakeLists.txt

@ -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…
Cancel
Save