2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4 spec2def(riched20.dll riched20.spec ADD_IMPORTLIB)
27 if(ARCH STREQUAL "i386")
28 list(APPEND SOURCE msvc-thiscall.c)
30 set_source_files_properties(txthost.c txtsrv.c PROPERTIES COMPILE_FLAGS "/FImsvc.h")
31 list(APPEND ADDITIONAL_SOURCE txthost.c txtsrv.c)
33 list(APPEND SOURCE txthost.c txtsrv.c)
36 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
37 #FIXME: http://llvm.org/bugs/show_bug.cgi?id=19027
38 set_property(SOURCE txthost.c txtsrv.c APPEND_STRING PROPERTY COMPILE_FLAGS " -no-integrated-as")
41 list(APPEND ADDITIONAL_SOURCE
43 ${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
45 add_library(riched20 SHARED ${SOURCE} ${ADDITIONAL_SOURCE})
46 set_module_type(riched20 win32dll)
47 target_link_libraries(riched20 wine uuid)
48 add_importlibs(riched20 ole32 oleaut32 usp10 imm32 user32 gdi32 msvcrt kernel32 ntdll)
49 add_pch(riched20 editor.h SOURCE)
50 add_cd_file(TARGET riched20 DESTINATION reactos/system32 FOR all)