1 2list(APPEND LIBCNTPR_SOURCE 3 ${LIBCNTPR_EXCEPT_SOURCE} 4 ${LIBCNTPR_FLOAT_SOURCE} 5 ${LIBCNTPR_MATH_SOURCE} 6 ${LIBCNTPR_MBSTRING_SOURCE} 7 ${LIBCNTPR_MEM_SOURCE} 8 ${LIBCNTPT_MISC_SOURCE} 9 ${LIBCNTPR_PRINTF_SOURCE} 10 ${LIBCNTPR_SEARCH_SOURCE} 11 ${LIBCNTPR_STDLIB_SOURCE} 12 ${LIBCNTPR_STRING_SOURCE} 13 ${LIBCNTPR_WSTRING_SOURCE} 14) 15 16list(APPEND LIBCNTPR_ASM_SOURCE 17 ${LIBCNTPR_EXCEPT_ASM_SOURCE} 18 ${LIBCNTPR_FLOAT_ASM_SOURCE} 19 ${LIBCNTPR_MATH_ASM_SOURCE} 20 ${LIBCNTPR_MEM_ASM_SOURCE} 21 ${LIBCNTPR_SETJMP_ASM_SOURCE} 22 ${LIBCNTPR_STRING_ASM_SOURCE} 23) 24 25set_source_files_properties(${LIBCNTPR_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "NO_RTL_INLINES;_NTSYSTEM_;_NTDLLBUILD_;_LIBCNT_;__CRT__NO_INLINE;CRTDLL") 26add_asm_files(libcntpr_asm ${LIBCNTPR_ASM_SOURCE}) 27 28add_library(libcntpr STATIC ${LIBCNTPR_SOURCE} ${libcntpr_asm}) 29target_compile_definitions(libcntpr 30 PRIVATE NO_RTL_INLINES 31 _NTSYSTEM_ 32 _NTDLLBUILD_ 33 _LIBCNT_ 34 __CRT__NO_INLINE 35 CRTDLL) 36add_dependencies(libcntpr psdk asm) 37