hello,

I have two modules in my CMake project:

/root//
//├── foo//
//│   ├── CMakeLists.txt//
//│   ├── src//
//│   │   └── foo.c//
//│   └── tests//
//│       ├── foo_unit_test.c//
//│       └── CMakeLists.txt//
//├── CMakeLists.txt//
//└── moo//
//    ├── CMakeLists.txt//
//    ├── src//
//    │   └── moo.c//
//    └── tests//
//        ├── CMakeLists.txt//
//        └── moo_unit_test.c//
/
my root project has:

/enable_testing()//
//
//add_subdirectory(adder)//
//add_subdirectory(viterbi_encoder)/


and each module has:

/add_subdirectory(tests)/


For the tests I am using add_test() and make all test.

yet, this only runs the tests within the first add_subdirectory. Other modules are ignored.

How can I run all tests at once?

Thank you in advance.

-- 

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

Reply via email to