cmake_policy(VERSION 3.11) enable_language(C) add_library (example SHARED empty.c) set_property (TARGET example PROPERTY CUSTOM_PROPERTY1 "PROPERTY1") set_property (TARGET example PROPERTY CUSTOM_PROPERTY2 "$") set_property (TARGET example PROPERTY CUSTOM_PROPERTY3 "$_AFTER>") set_property (TARGET example PROPERTY CUSTOM_PROPERTY4 "$>") file(GENERATE OUTPUT "GENEX_EVAL-generated.txt" CONTENT "$>")