ridiculousfish / libdivide

Official git repository for libdivide: optimized integer division
http://libdivide.com
Other
1.09k stars 77 forks source link

Include missing CTest module #109

Closed qak closed 9 months ago

qak commented 10 months ago

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.