* Sync up to trunk head (r65270).
[reactos.git] / dll / win32 / cabinet / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DHAVE_ZLIB)
5
6 include_directories(
7 ${REACTOS_SOURCE_DIR}/include/reactos/wine
8 ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
9
10 spec2def(cabinet.dll cabinet.spec ADD_IMPORTLIB)
11
12 list(APPEND SOURCE
13 cabinet_main.c
14 fci.c
15 fdi.c
16 cabinet.h)
17
18 add_library(cabinet SHARED
19 ${SOURCE}
20 stubs.c
21 cabinet.rc
22 ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
23
24 set_module_type(cabinet win32dll)
25 target_link_libraries(cabinet wine zlib)
26 add_importlibs(cabinet msvcrt kernel32 ntdll)
27 add_pch(cabinet cabinet.h SOURCE)
28 add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)