1 2add_definitions(-D__WINESRC__ -D__ROS_LONG64__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(riched20.dll riched20.spec ADD_IMPORTLIB) 5 6list(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 28list(APPEND riched20_rc_deps 29 ${CMAKE_CURRENT_SOURCE_DIR}/riched_tom.rgs 30 ${CMAKE_CURRENT_BINARY_DIR}/riched_tom.tlb) 31set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${riched20_rc_deps}") 32 33add_library(riched20 MODULE 34 ${SOURCE} 35 version.rc 36 ${CMAKE_CURRENT_BINARY_DIR}/riched20.def) 37 38add_typelib(riched_tom.idl) 39add_dependencies(riched20 stdole2) 40set_module_type(riched20 win32dll) 41target_link_libraries(riched20 wine uuid) 42add_importlibs(riched20 ole32 oleaut32 usp10 imm32 user32 gdi32 msvcrt kernel32 ntdll) 43add_pch(riched20 precomp.h SOURCE) 44add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all) 45