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