[CMake] Adding compile and build type tests to CMake/CTest
Edward Diener
eldlistmailingz at tropicsoft.com
Mon Sep 4 09:40:03 EDT 2017
Boost Build has tests for running an application successfully or not,
for compiling one or more source files successfully or not, and for
building one or more source files into an exe or not. These tests in
Boost Build are the run/run-fail, compile/compile-fail, and
link/link-fail rules.
CMake/CTest has the exact equivalent to the run/run-fail rule in its
add_test framework, but there is not add_test equivalent to the other
two sets of rules. It sure would be nice, when Boost transitions to
using CMake/CTest instead of Boost Build, if CMake/CTest had the
equivalent of the other two sets of types of test in its add_test
framework.
Is there any consensus that these other two types of tests might be
valuable for CMake/CTest, or any way to make this happen ?
More information about the CMake
mailing list