xref: /reactos/dll/win32/cabinet/CMakeLists.txt (revision 9393fc32)
1
2add_definitions(
3    -D__WINESRC__
4    -DHAVE_ZLIB)
5
6include_directories(
7    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
8    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
9
10spec2def(cabinet.dll cabinet.spec ADD_IMPORTLIB)
11
12list(APPEND SOURCE
13    cabinet_main.c
14    fci.c
15    fdi.c)
16
17list(APPEND PCH_SKIP_SOURCE
18    stubs.c)
19
20add_library(cabinet MODULE
21    ${SOURCE}
22    ${PCH_SKIP_SOURCE}
23    cabinet.rc
24    ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
25
26set_module_type(cabinet win32dll)
27target_link_libraries(cabinet wine zlib)
28add_importlibs(cabinet msvcrt kernel32 ntdll)
29add_pch(cabinet precomp.h "${PCH_SKIP_SOURCE}")
30add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)
31