Open TartanLlama opened 2 months ago
It's idiomatic to put test building behind a check of ENABLE_TESTING, which is defined by CTest:
ENABLE_TESTING
if(BUILD_TESTING) add_executable(calculatortests src/test_main.cpp src/calculator.cpp) add_test(NAME calculator COMMAND calculatortests) endif()
@TartanLlama Can you look at the CMakeLists.txt/test_calculator.cpp files in the new-user-info branch? I believe this testing in alex-gui-changes branch is out of date.
It's idiomatic to put test building behind a check of
ENABLE_TESTING
, which is defined by CTest: