reactos/dll/3rdparty/libpng/CMakeLists.txt
Amine Khaldi 9ff87a62ad [CMAKE]
- More work on the dlls. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=49135
2010-10-13 12:11:50 +00:00

32 lines
654 B
CMake

add_definitions(-DWIN32 -DNDEBUG -D_WINDOWS -DPNG_BUILD_DLL)
add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
add_library(libpng SHARED
png.c
pngerror.c
pngget.c
pngmem.c
pngpread.c
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtest.c
pngtrans.c
pngwio.c
pngwrite.c
pngwtran.c
pngwutil.c)
set_entrypoint(libpng 0)
target_link_libraries(libpng mingw_common zlib)
add_importlibs(libpng msvcrt kernel32)
add_dependencies(libpng psdk buildno_header)