enable_language(C) set(obj "${CMAKE_C_OUTPUT_EXTENSION}") if(BORLAND) set(pre -) endif() add_link_options($<$,SHARED_LIBRARY>,$>:${pre}BADFLAG_SHARED_RELEASE${obj}>) add_link_options($<$,MODULE_LIBRARY>,$>:${pre}BADFLAG_MODULE_RELEASE${obj}>) add_link_options($<$,EXECUTABLE>,$>:${pre}BADFLAG_EXECUTABLE_RELEASE${obj}>) add_library(LinkOptions_shared SHARED LinkOptionsLib.c) add_library(LinkOptions_mod MODULE LinkOptionsLib.c) add_executable(LinkOptions_exe LinkOptionsExe.c)