xref: /reactos/dll/win32/msctf/CMakeLists.txt (revision c2c66aff)
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)
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    msctf_internal.h
21    ${CMAKE_CURRENT_BINARY_DIR}/msctf_stubs.c)
22
23add_library(msctf SHARED
24    ${SOURCE}
25    version.rc
26    ${CMAKE_CURRENT_BINARY_DIR}/msctf.def)
27
28set_module_type(msctf win32dll)
29target_link_libraries(msctf uuid wine)
30add_importlibs(msctf ole32 oleaut32 user32 advapi32 advapi32_vista msvcrt kernel32 ntdll)
31add_pch(msctf msctf_internal.h SOURCE)
32add_cd_file(TARGET msctf DESTINATION reactos/system32 FOR all)
33