[CMAKE] Use modules instead of shared libraries
[reactos.git] / dll / shellext / shellbtrfs / CMakeLists.txt
1 set_cpp(WITH_RUNTIME WITH_EXCEPTIONS WITH_STL)
2
3 remove_definitions(-D_WIN32_WINNT=0x502)
4 add_definitions(-D_WIN32_WINNT=0x603)
5
6 if(NOT MSVC)
7 add_compile_flags_language("-std=c++11" "CXX")
8 endif()
9
10 include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/btrfs)
11
12 spec2def(shellbtrfs.dll shellbtrfs.spec)
13
14 list(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
29 add_library(shellbtrfs MODULE
30 ${SOURCE}
31 guid.c
32 shellbtrfs.rc
33 ${CMAKE_CURRENT_BINARY_DIR}/shellbtrfs.def)
34
35 file(GLOB shellbtrfs_rc_deps *.ico)
36 add_rc_deps(shellbtrfs.rc ${shellbtrfs_rc_deps})
37
38 set_module_type(shellbtrfs win32dll UNICODE)
39 target_link_libraries(shellbtrfs uuid)
40 add_importlibs(shellbtrfs advapi32 advapi32_vista ole32 shell32 shlwapi user32 comctl32 uxtheme setupapi comdlg32 gdi32 msvcrt kernel32_vista kernel32 ntdll)
41 add_pch(shellbtrfs precomp.h SOURCE)
42 add_cd_file(TARGET shellbtrfs DESTINATION reactos/system32 FOR all)