It would be good to add support for generator expressions. Without it nothing from the generation stage can be tested with the framework.
For example the following test fails because the ct_assert_equal function is evaluated at configure time, rather than at generation time.
ct_add_test(NAME test_with_genex)
function(${test_with_genex})
add_executable(test_executable test_executable.cpp)
set(TEST_VAR $<TARGET_FILENAME:test_executable>)
ct_assert_equal(TEST_VAR "test_executable")
endfunction()
It would be good to add support for generator expressions. Without it nothing from the generation stage can be tested with the framework.
For example the following test fails because the
ct_assert_equalfunction is evaluated at configure time, rather than at generation time.