Dear users,
I'm new to the build system. I am trying to create the target `test' to
run all test suites. I'm using GoogleTest to make a test suite:
in test/CMakeLists.txt
file(GLOB test_files LIST_DIRECTORIES false *.cpp)
add_executable(test_driver ${test_files})
target_link_libraries(test_driver gtest_main)
add_test(NAME test_driver COMMAND test_driver)
in /CMakeLists.txt
add_subdirectory(test)
this effectively creates the test suite so that can be invoked through
test/test_driver. However I thought that the suite, at least if I set
the param EXCLUDE_FROM_ALL in add_executable, would be built and
executed as part of `make test', similarly to `make check' in AutoTools
builds.
What is the correct way to integrate the test suite with CTest?
Thanks,
Quaquaraqua
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake