Skip to content

Support for generator expressions ? #49

@BenLeadbetter

Description

@BenLeadbetter

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions