cmake_test/asserts/target_has_property

cmake_test/asserts/target_has_property.ct_assert_target_has_property(target property)

Assert that a target has a property. If the given target name does not exist or is not a target, an ASSERTION_FAILED exception will be thrown.

Parameters:
  • target (target) – The name of the target

  • property (desc) – The name of the property

cmake_test/asserts/target_has_property.ct_assert_target_does_not_have_property(target property)

Assert that a target does not have a property. If the given target name does not exist or is not a target, an ASSERTIONFAILED exception will be thrown.

Parameters:
  • target (target) – The name of the target

  • property (desc) – The name of the property