My project structure is https://github.com/yumyai/cmake-sample. It is similar to project in this thread CMake: Project structure with unit tests.
Whenever I add include(CTest)
into a top-level CMakeLists.txt, I couldn't build a test file (make test
does not build anything). But if I comment include(CTest)
out, I could build unit test exec using make test
just fine.
Is this normal behaviour or I forgot something ?