reactos/dll/win32/gdiplus/CMakeLists.txt
Timo Kreuzer 9cc4f5ceee [CMAKE]
Don't automatically add stub files to the sources, instead add them manually where neccessary. also fix a number of spec files to resemble actual state of implementation.

svn path=/branches/cmake-bringup/; revision=50574
2011-01-31 14:20:53 +00:00

54 lines
920 B
CMake

add_definitions(
-D__WINESRC__
-D_USE_MATH_DEFINES
-D_DLL -D__USE_CRTIMP)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
spec2def(gdiplus.dll gdiplus.spec)
list(APPEND SOURCE
brush.c
customlinecap.c
font.c
gdiplus.c
graphics.c
graphicspath.c
image.c
imageattributes.c
matrix.c
pathiterator.c
pen.c
region.c
stringformat.c
${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
add_library(gdiplus SHARED ${SOURCE})
set_module_type(gdiplus win32dll)
target_link_libraries(gdiplus uuid wine)
add_importlibs(gdiplus
msvcrt
shlwapi
oleaut32
ole32
user32
gdi32
windowscodecs
kernel32
ntdll)
add_importlib_target(gdiplus.spec)
if(ARCH MATCHES amd64)
target_link_libraries(gdiplus crt)
endif(ARCH MATCHES amd64)
add_cab_target(gdiplus 1)