xref: /reactos/dll/win32/msctf/CMakeLists.txt (revision 84344399)
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    mlng.cpp
25    utils.cpp)
26
27add_library(msctf MODULE
28    ${SOURCE}
29    ${PCH_SKIP_SOURCE}
30    version.rc
31    ${CMAKE_CURRENT_BINARY_DIR}/msctf.def)
32
33set_module_type(msctf win32dll UNICODE)
34target_link_libraries(msctf uuid wine cicero)
35add_importlibs(msctf user32 advapi32 advapi32_vista msvcrt kernel32 ntdll)
36add_delay_importlibs(msctf shell32 shlwapi ole32 oleaut32 imm32 gdi32)
37add_pch(msctf precomp.h SOURCE)
38add_cd_file(TARGET msctf DESTINATION reactos/system32 FOR all)
39