abs-tudelft / abs-tudelft/cmake-modules

Allow building of tests only for specific module

Aperta
#22 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
CMake
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently, when running cmake with -DBUILD_TESTS=ON, it causes all compile units to build tests, including projects that you e.g. fetchcontent into your project.
This is undesirable, because when running `make` all dependency tests are compiled, and when running `make test` it runs all tests of dependencies.

Is it possible to specify for which compile unit to build the tests?
Or perhaps there is a way to only enable tests for compile units that were added in the current CMakeLists.txt,
perhaps with a different value for -DBUILD_TESTS=LOCAL or something?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.