cmake_minimum_required (VERSION 2.8.8) project(GeneratorExpression NONE) add_custom_target(check ALL COMMAND ${CMAKE_COMMAND} -Dtest_0=$<0:nothing> -Dtest_1=$<1:content> -Dconfig=$ -Dtest_and_0=$ -Dtest_and_0_0=$ -Dtest_and_0_1=$ -Dtest_and_1=$ -Dtest_and_1_0=$ -Dtest_and_1_1=$ -Dtest_config_0=$x> -Dtest_config_1=$> -Dtest_not_0=$ -Dtest_not_1=$ -Dtest_or_0=$ -Dtest_or_0_0=$ -Dtest_or_0_1=$ -Dtest_or_1=$ -Dtest_or_1_0=$ -Dtest_or_1_1=$ -Dtest_bool_notfound=$ -Dtest_bool_foo_notfound=$ -Dtest_bool_true=$ -Dtest_bool_false=$ -Dtest_bool_on=$ -Dtest_bool_off=$ -Dtest_bool_no=$ -Dtest_bool_n=$ -Dtest_bool_empty=$ -Dtest_strequal_yes_yes=$ -Dtest_strequal_yes_yes_cs=$ -Dtest_strequal_yes_no=$ -Dtest_strequal_no_yes=$ -Dtest_strequal_angle_r=$,$> -Dtest_strequal_comma=$,$> -Dtest_strequal_angle_r_comma=$,$> -Dtest_strequal_both_empty=$ -Dtest_strequal_one_empty=$ -Dtest_angle_r=$ -Dtest_comma=$ -P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake COMMAND ${CMAKE_COMMAND} -E echo "check done" VERBATIM )