mirror of
https://github.com/reactos/reactos.git
synced 2024-09-22 18:45:51 +00:00
4ee1da42f1
- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
54 lines
830 B
CMake
54 lines
830 B
CMake
|
|
add_definitions(-D__WINESRC__)
|
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(riched20.dll riched20.spec)
|
|
|
|
add_library(riched20 SHARED
|
|
caret.c
|
|
clipboard.c
|
|
context.c
|
|
editor.c
|
|
list.c
|
|
paint.c
|
|
para.c
|
|
reader.c
|
|
richole.c
|
|
row.c
|
|
run.c
|
|
string.c
|
|
style.c
|
|
table.c
|
|
txthost.c
|
|
txtsrv.c
|
|
undo.c
|
|
wrap.c
|
|
writer.c
|
|
version.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
|
|
|
|
set_module_type(riched20 win32dll)
|
|
|
|
target_link_libraries(riched20
|
|
wine
|
|
uuid)
|
|
|
|
if(MSVC)
|
|
set_target_properties(portcls PROPERTIES COMPILE_FLAGS "/FIwine/typeof.h")
|
|
endif(MSVC)
|
|
|
|
add_importlibs(riched20
|
|
msvcrt
|
|
ole32
|
|
oleaut32
|
|
imm32
|
|
user32
|
|
gdi32
|
|
kernel32
|
|
ntdll)
|
|
|
|
|
|
add_cab_target(riched20 1)
|