1 2add_definitions(-D__WINESRC__) 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 28if(MSVC AND (ARCH STREQUAL "i386")) 29 list(APPEND SOURCE msvc-thiscall.c) 30endif() 31 32list(APPEND riched20_rc_deps 33 ${CMAKE_CURRENT_SOURCE_DIR}/riched_tom.rgs 34 ${CMAKE_CURRENT_BINARY_DIR}/riched_tom.tlb) 35set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${riched20_rc_deps}") 36 37add_library(riched20 SHARED 38 ${SOURCE} 39 version.rc 40 ${CMAKE_CURRENT_BINARY_DIR}/riched20.def) 41 42add_typelib(riched_tom.idl) 43add_dependencies(riched20 stdole2) 44set_module_type(riched20 win32dll) 45target_link_libraries(riched20 wine uuid) 46add_importlibs(riched20 ole32 oleaut32 usp10 imm32 user32 gdi32 msvcrt kernel32 ntdll) 47add_pch(riched20 precomp.h SOURCE) 48add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all) 49