reactos/dll/win32/windowscodecs/CMakeLists.txt
Jérôme Gardou 4ee1da42f1 [CMAKE]
- 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
2010-10-30 16:08:19 +00:00

45 lines
1,017 B
CMake

add_definitions(-D__WINESRC__)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/wine
${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg
${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib
${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
spec2def(windowscodecs.dll windowscodecs.spec)
add_library(windowscodecs SHARED
bmpdecode.c
bmpencode.c
clsfactory.c
converter.c
fliprotate.c
gifformat.c
icoformat.c
imgfactory.c
info.c
jpegformat.c
main.c
palette.c
pngformat.c
propertybag.c
regsvr.c
stream.c
tiffformat.c
ungif.c
version.rc
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
set_module_type(windowscodecs win32dll)
target_link_libraries(windowscodecs wine)
add_importlibs(windowscodecs uuid ole32 shlwapi advapi32 msvcrt kernel32 ntdll)
add_cab_target(windowscodecs 1)