reactos/dll/win32/gdiplus/CMakeLists.txt
Amine Khaldi 18a81d5d1e [SHELL-EXPERIMENTS]
* Sync up to trunk head (r64124).

svn path=/branches/shell-experiments/; revision=64126
2014-09-12 19:21:19 +00:00

44 lines
992 B
CMake

add_definitions(
-D__WINESRC__
-D_USE_MATH_DEFINES)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB)
list(APPEND SOURCE
brush.c
customlinecap.c
font.c
gdiplus.c
graphics.c
graphicspath.c
image.c
imageattributes.c
matrix.c
metafile.c
pathiterator.c
pen.c
region.c
stringformat.c
gdiplus_private.h)
add_library(gdiplus SHARED
${SOURCE}
guid.c
gdiplus.rc
${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
set_module_type(gdiplus win32dll)
target_link_libraries(gdiplus wine)
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_link_libraries(gdiplus mingwex)
endif()
add_delay_importlibs(gdiplus windowscodecs)
add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll)
add_pch(gdiplus gdiplus_private.h SOURCE)
add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)