reactos/dll/shellext/shellbtrfs/CMakeLists.txt
Vincent Franchomme 0604273535 [BTRFS][UBTRFS][SHELLBTRFS] Upgrade to 1.7.4 (#4417)
v1.7.4 (2020-08-23):

- Fixed issue when running compressed EXEs
- Changed build system to cmake
- Upgraded zstd to version 1.4.5
- Added support for FSCTL_GET_RETRIEVAL_POINTERS
- Miscellaneous bug fixes
2022-05-03 17:30:11 +02:00

48 lines
1.4 KiB
CMake

remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x603)
include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
spec2def(shellbtrfs.dll shellbtrfs.spec)
list(APPEND SOURCE
balance.cpp
contextmenu.cpp
devices.cpp
factory.cpp
iconoverlay.cpp
main.cpp
mountmgr_local.cpp
propsheet.cpp
reactos.cpp
recv.cpp
scrub.cpp
send.cpp
volpropsheet.cpp)
list(APPEND PCH_SKIP_SOURCE
guid.c
${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.c)
if((ARCH STREQUAL "i386") OR (ARCH STREQUAL "amd64"))
list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs/crc32c.S)
add_asm_files(btrfs_asm ${ASM_SOURCE})
endif()
add_library(shellbtrfs MODULE
${SOURCE}
${btrfs_asm}
${PCH_SKIP_SOURCE}
shellbtrfs.rc
${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
file(GLOB shellbtrfs_rc_deps *.ico)
add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
set_module_type(shellbtrfs win32dll UNICODE)
target_link_libraries(shellbtrfs uuid cppstl)
set_target_cpp_properties(shellbtrfs WITH_EXCEPTIONS)
add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
add_pch(shellbtrfs precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)