1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x603)
4
5include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
6
7spec2def(shellbtrfs.dll shellbtrfs.spec)
8
9list(APPEND SOURCE
10    balance.cpp
11    contextmenu.cpp
12    devices.cpp
13    factory.cpp
14    iconoverlay.cpp
15    main.cpp
16    mountmgr_local.cpp
17    propsheet.cpp
18    reactos.cpp
19    recv.cpp
20    scrub.cpp
21    send.cpp
22    volpropsheet.cpp)
23
24list(APPEND PCH_SKIP_SOURCE
25    guid.c)
26
27add_library(shellbtrfs MODULE
28    ${SOURCE}
29    ${PCH_SKIP_SOURCE}
30    shellbtrfs.rc
31    ${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
32
33file(GLOB shellbtrfs_rc_deps *.ico)
34add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
35
36set_module_type(shellbtrfs win32dll UNICODE)
37target_link_libraries(shellbtrfs uuid cppstl)
38set_target_cpp_properties(shellbtrfs WITH_EXCEPTIONS)
39add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
40add_pch(shellbtrfs precomp.h "${PCH_SKIP_SOURCE}")
41add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)
42