[CABINET] Sync with Wine Staging 3.3. CORE-14434
[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}/sdk/include/reactos/wine
8 ${REACTOS_SOURCE_DIR}/sdk/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 precomp.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 precomp.h SOURCE)
28 add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)