2011-05-16 13:12:07 +00:00
|
|
|
|
2012-01-23 15:12:50 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-DHAVE_ZLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-01-23 15:12:50 +00:00
|
|
|
include_directories(
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/wine
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(cabinet.dll cabinet.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
cabinet_main.c
|
|
|
|
fci.c
|
|
|
|
fdi.c
|
|
|
|
stubs.c
|
|
|
|
cabinet.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
|
|
|
|
|
|
|
|
add_library(cabinet SHARED ${SOURCE})
|
|
|
|
|
2013-02-23 16:45:48 +00:00
|
|
|
set_module_type(cabinet win32dll)
|
2012-01-23 15:12:50 +00:00
|
|
|
target_link_libraries(cabinet wine zlib)
|
|
|
|
add_importlibs(cabinet msvcrt kernel32 ntdll)
|
2012-03-07 21:21:27 +00:00
|
|
|
|
2011-08-11 15:16:48 +00:00
|
|
|
add_pch(cabinet cabinet.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(cabinet psdk)
|
|
|
|
add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)
|