Currently the libdivide project's CMakeLists.txt file sets up tests in a way that makes it possible to run the tests from the build directory by executing the ctest command. Yet the CMakeLists.txt file does not include the CTest CMake module anywhere. This pull request includes the CTest module in the appropriate location.
I'm actually surprised executing the ctest command to run libdivide's tests even worked without including the CTest module in the first place. Maybe one of the other included CMake modules ended up transitively loading the CTest module. This, however, would be undocumented behaviour (AFAIK) that should not be relied on.
Currently the libdivide project's
CMakeLists.txt
file sets up tests in a way that makes it possible to run the tests from the build directory by executing thectest
command. Yet theCMakeLists.txt
file does not include the CTest CMake module anywhere. This pull request includes the CTest module in the appropriate location.I'm actually surprised executing the
ctest
command to run libdivide's tests even worked without including the CTest module in the first place. Maybe one of the other included CMake modules ended up transitively loading the CTest module. This, however, would be undocumented behaviour (AFAIK) that should not be relied on.