mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
9ff87a62ad
- More work on the dlls. By Alexey Komarov. svn path=/branches/cmake-bringup/; revision=49135
32 lines
654 B
CMake
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)
|