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