Closed ChrisThrasher closed 3 years ago
A more involved change would entail replacing enable_testing()
with include(CTest)
which would automatically give us the BUILD_TESTING
option that many CMake projects replacing the BOX2D_BUILD_UNIT_TESTS
option.
I'm making more build system improvements here that I'd love to submit later if this PR is welcome.
@erincatto,
This lets us run
ctest
in the binary dir or build thetest
target to automatically run all tests. This means CI scripts don't need updating when tests are added and new developers have an easier time making sure they run all tests.