xref: /reactos/dll/shellext/zipfldr/CMakeLists.txt (revision cdf90707)
1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x600)
4
5include_directories(
6    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib
7    ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/zlib/contrib)
8
9spec2def(zipfldr.dll zipfldr.spec ADD_IMPORTLIB)
10
11list(APPEND SOURCE
12    zipfldr.cpp
13    zippidl.cpp
14    zippidl.hpp
15    IZip.hpp
16    CConfirmReplace.cpp
17    CExplorerCommand.cpp
18    CEnumZipContents.cpp
19    CFolderViewCB.cpp
20    CSendToZip.cpp
21    CZipCreator.cpp
22    CZipEnumerator.hpp
23    CZipExtract.cpp
24    CZipFolder.hpp
25    CZipPassword.cpp
26    Debug.cpp
27    zipfldr.spec
28    precomp.h
29    resource.h)
30
31add_library(zipfldr MODULE
32    ${SOURCE}
33    ${ZLIB_SOURCE}
34    zipfldr.rc
35    ${CMAKE_CURRENT_BINARY_DIR}/zipfldr.def)
36
37set_module_type(zipfldr win32dll UNICODE)
38target_link_libraries(zipfldr minizip zlib uuid cpprt atl_classes)
39set_target_cpp_properties(zipfldr WITH_EXCEPTIONS)
40add_importlibs(zipfldr oleaut32 ole32 shlwapi comctl32 shell32 user32 advapi32 msvcrt kernel32 ntdll)
41add_pch(zipfldr precomp.h SOURCE)
42add_cd_file(TARGET zipfldr DESTINATION reactos/system32 FOR all)
43
44