[CMAKE] Use modules instead of shared libraries
[reactos.git] / dll / win32 / riched20 / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/sdk/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 precomp.h)
27
28 list(APPEND riched20_rc_deps
29 ${CMAKE_CURRENT_SOURCE_DIR}/riched_tom.rgs
30 ${CMAKE_CURRENT_BINARY_DIR}/riched_tom.tlb)
31 set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${riched20_rc_deps}")
32
33 add_library(riched20 MODULE
34 ${SOURCE}
35 version.rc
36 ${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
37
38 add_typelib(riched_tom.idl)
39 add_dependencies(riched20 stdole2)
40 set_module_type(riched20 win32dll)
41 target_link_libraries(riched20 wine uuid)
42 add_importlibs(riched20 ole32 oleaut32 usp10 imm32 user32 gdi32 msvcrt kernel32 ntdll)
43 add_pch(riched20 precomp.h SOURCE)
44 add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)