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