1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5add_definitions(-D__WINESRC__) 6include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(msctf.dll msctf.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 categorymgr.c 11 compartmentmgr.c 12 context.c 13 displayattributemgr.c 14 documentmgr.c 15 inputprocessor.c 16 langbarmgr.c 17 msctf.c 18 range.c 19 threadmgr.c 20 precomp.h 21 ${CMAKE_CURRENT_BINARY_DIR}/msctf_stubs.c) 22 23list(APPEND PCH_SKIP_SOURCE 24 utils.cpp) 25 26add_library(msctf MODULE 27 ${SOURCE} 28 ${PCH_SKIP_SOURCE} 29 version.rc 30 ${CMAKE_CURRENT_BINARY_DIR}/msctf.def) 31 32set_module_type(msctf win32dll) 33target_link_libraries(msctf uuid wine) 34add_importlibs(msctf user32 advapi32 advapi32_vista msvcrt kernel32 ntdll) 35add_delay_importlibs(msctf ole32 oleaut32) 36add_pch(msctf precomp.h SOURCE) 37add_cd_file(TARGET msctf DESTINATION reactos/system32 FOR all) 38