Sync with trunk r63647.
[reactos.git] / 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 undo.c
22 wrap.c
23 writer.c
24 editor.h)
25
26 if(MSVC)
27 if(ARCH STREQUAL "i386")
28 list(APPEND SOURCE msvc-thiscall.c)
29 endif()
30 set_source_files_properties(txthost.c txtsrv.c PROPERTIES COMPILE_FLAGS "/FImsvc.h")
31 list(APPEND ADDITIONAL_SOURCE txthost.c txtsrv.c)
32 else()
33 list(APPEND SOURCE txthost.c txtsrv.c)
34 endif()
35
36 list(APPEND ADDITIONAL_SOURCE
37 version.rc
38 ${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
39
40 add_library(riched20 SHARED ${SOURCE} ${ADDITIONAL_SOURCE})
41 set_module_type(riched20 win32dll)
42 target_link_libraries(riched20 wine uuid)
43 add_importlibs(riched20 ole32 oleaut32 usp10 imm32 user32 gdi32 msvcrt kernel32 ntdll)
44 add_pch(riched20 editor.h SOURCE)
45 add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)