[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 set_rc_compiler()
10
11 list(APPEND SOURCE
12 caret.c
13 clipboard.c
14 context.c
15 editor.c
16 list.c
17 paint.c
18 para.c
19 reader.c
20 richole.c
21 row.c
22 run.c
23 string.c
24 style.c
25 table.c
26 txthost.c
27 txtsrv.c
28 undo.c
29 wrap.c
30 writer.c
31 version.rc
32 ${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
33
34 if(MSVC)
35 list(APPEND SOURCE msvc-thiscall.c)
36 set_source_files_properties(txthost.c txtsrv.c PROPERTIES COMPILE_FLAGS "/FImsvc.h")
37 endif()
38
39 add_library(riched20 SHARED ${SOURCE})
40 set_module_type(riched20 win32dll)
41 target_link_libraries(riched20 wine uuid)
42
43 add_importlibs(riched20
44 msvcrt
45 ole32
46 oleaut32
47 imm32
48 user32
49 gdi32
50 kernel32
51 ntdll)
52
53 add_importlib_target(riched20.spec)
54
55 add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)