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