17 Sep
2018
17 Sep
'18
noon
Alexander Grund wrote:
If I include your project's root CMake file that contains tests added by add_test(), then I cannot avoid those when running my own tests.
Usual action for this is to only add the tests folder if CMAKE_SOURCE_DIR==PROJECT_SOURCE_DIR (you are the project being build)
This sounds sensible. Out of curiosity, I looked at Hana and Yap as two examples that already have CMakeLists files and neither bothers to do so. Both assume that they are the project being built, and do not support add_subdirectory use.