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 precomp.h) 17 18add_library(cabinet MODULE 19 ${SOURCE} 20 stubs.c 21 cabinet.rc 22 ${CMAKE_CURRENT_BINARY_DIR}/cabinet.def) 23 24set_module_type(cabinet win32dll) 25target_link_libraries(cabinet wine zlib) 26add_importlibs(cabinet msvcrt kernel32 ntdll) 27add_pch(cabinet precomp.h SOURCE) 28add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all) 29