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(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/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
|
2020-05-09 21:37:40 +00:00
|
|
|
fdi.c)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
stubs.c)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(cabinet MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
cabinet.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
|
|
|
|
|
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)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(cabinet precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)
|