Sync with trunk r58740.
[reactos.git] / dll / win32 / riched20 / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4
5 spec2def(riched20.dll riched20.spec ADD_IMPORTLIB)
6
7 list(APPEND SOURCE
8 caret.c
9 clipboard.c
10 context.c
11 editor.c
12 list.c
13 paint.c
14 para.c
15 reader.c
16 richole.c
17 row.c
18 run.c
19 string.c
20 style.c
21 table.c
22 txthost.c
23 txtsrv.c
24 undo.c
25 wrap.c
26 writer.c
27 version.rc
28 ${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
29
30 if(MSVC)
31 if(ARCH STREQUAL "i386")
32 list(APPEND SOURCE msvc-thiscall.c)
33 endif()
34 set_source_files_properties(txthost.c txtsrv.c PROPERTIES COMPILE_FLAGS "/FImsvc.h")
35 endif()
36
37 add_library(riched20 SHARED ${SOURCE})
38 set_module_type(riched20 win32dll)
39 target_link_libraries(riched20 wine uuid)
40
41 add_importlibs(riched20
42 msvcrt
43 ole32
44 oleaut32
45 imm32
46 user32
47 gdi32
48 kernel32
49 ntdll)
50
51 add_pch(riched20 editor.h)
52 add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)