1 2list(APPEND LIBCNTPT_MISC_SOURCE 3 misc/fltused.c 4) 5 6if(ARCH STREQUAL "i386") 7 list(APPEND LIBCNTPR_ASM_SOURCE 8 misc/i386/readcr4.S 9 ) 10endif() 11 12list(APPEND CRT_MISC_SOURCE 13 ${LIBCNTPT_MISC_SOURCE} 14 misc/__crt_MessageBoxA.c 15 misc/amsg.c 16 misc/assert.c 17 misc/crt_init.c 18 misc/environ.c 19 misc/getargs.c 20 misc/i10output.c 21 misc/initterm.c 22 misc/lock.c 23 misc/purecall.c 24 misc/stubs.c 25 misc/tls.c 26) 27 28add_library(getopt misc/getopt.c) 29target_compile_definitions(getopt PRIVATE _DLL __USE_CRTIMP) 30add_dependencies(getopt psdk) 31