[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 add_library(riched20 SHARED ${SOURCE})
34 set_module_type(riched20 win32dll)
35 target_link_libraries(riched20 wine uuid)
36
37 if(MSVC)
38 set_target_properties(riched20 PROPERTIES COMPILE_FLAGS "/FIwine/typeof.h")
39 endif(MSVC)
40
41 add_importlibs(riched20
42 msvcrt
43 ole32
44 oleaut32
45 imm32
46 user32
47 gdi32
48 kernel32
49 ntdll)
50
51 add_importlib_target(riched20.spec)
52
53 add_cab_target(riched20 1)