reactos/dll/3rdparty/libpng/CMakeLists.txt
Amine Khaldi ddb3d908c9 * Sync up to trunk HEAD (r62285). Branch guys deserve the significant speedups too ;)
svn path=/branches/shell-experiments/; revision=62286
2014-02-22 10:31:26 +00:00

35 lines
700 B
CMake

add_definitions(
-DWIN32
-DNDEBUG
-D_WINDOWS
-DPNG_BUILD_DLL)
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
list(APPEND SOURCE
png.c
pngerror.c
pngget.c
pngmem.c
pngpread.c
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtrans.c
pngwio.c
pngwrite.c
pngwtran.c
pngwutil.c
pngpriv.h)
add_library(libpng SHARED ${SOURCE})
set_module_type(libpng win32dll)
target_link_libraries(libpng zlib)
add_importlibs(libpng msvcrt kernel32 ntdll)
add_pch(libpng pngpriv.h SOURCE)
add_cd_file(TARGET libpng DESTINATION reactos/system32 FOR all)