Create the AHCI branch for Aman's work
[reactos.git] / drivers / filesystems / btrfs / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers
3 inc)
4
5 list(APPEND SOURCE
6 btrfs.c
7 cache.c
8 crc32c.c
9 create.c
10 dirctrl.c
11 fastio.c
12 fileinfo.c
13 flushthread.c
14 fsctl.c
15 read.c
16 reparse.c
17 search.c
18 security.c
19 treefuncs.c
20 write.c
21 btrfs_drv.h)
22
23 add_library(btrfs SHARED ${SOURCE} btrfs.rc)
24
25 if(NOT MSVC)
26 replace_compile_flags("-Werror" " ")
27 else()
28 replace_compile_flags("/we\"4189\"" " ")
29 endif()
30
31 add_definitions(-D__KERNEL__)
32 set_module_type(btrfs kernelmodedriver)
33 target_link_libraries(btrfs ntoskrnl_vista)
34 add_importlibs(btrfs ntoskrnl hal)
35 add_pch(btrfs btrfs_drv.h SOURCE)
36 add_cd_file(TARGET btrfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
37