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