Save the ReiserFS driver in the right place on installation CDs.
[reactos.git] / reactos / drivers / filesystems / reiserfs / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/drivers
3 inc)
4
5 list(APPEND SOURCE
6 src/nls/nls_base.c
7 src/nls/nls_big5.c
8 src/nls/nls_cp437.c
9 src/nls/nls_cp737.c
10 src/nls/nls_cp775.c
11 src/nls/nls_cp850.c
12 src/nls/nls_cp852.c
13 src/nls/nls_cp855.c
14 src/nls/nls_cp857.c
15 src/nls/nls_cp860.c
16 src/nls/nls_cp861.c
17 src/nls/nls_cp862.c
18 src/nls/nls_cp863.c
19 src/nls/nls_cp864.c
20 src/nls/nls_cp865.c
21 src/nls/nls_cp866.c
22 src/nls/nls_cp869.c
23 src/nls/nls_cp874.c
24 src/nls/nls_cp932.c
25 src/nls/nls_cp936.c
26 src/nls/nls_cp949.c
27 src/nls/nls_cp950.c
28 src/nls/nls_cp1251.c
29 src/nls/nls_cp1255.c
30 src/nls/nls_euc-jp.c
31 src/nls/nls_euc-kr.c
32 src/nls/nls_gb2312.c
33 src/nls/nls_iso8859-1.c
34 src/nls/nls_iso8859-2.c
35 src/nls/nls_iso8859-3.c
36 src/nls/nls_iso8859-4.c
37 src/nls/nls_iso8859-5.c
38 src/nls/nls_iso8859-6.c
39 src/nls/nls_iso8859-7.c
40 src/nls/nls_iso8859-8.c
41 src/nls/nls_iso8859-9.c
42 src/nls/nls_iso8859-13.c
43 src/nls/nls_iso8859-14.c
44 src/nls/nls_iso8859-15.c
45 src/nls/nls_koi8-r.c
46 src/nls/nls_koi8-ru.c
47 src/nls/nls_koi8-u.c
48 src/nls/nls_sjis.c
49 src/nls/nls_tis-620.c
50 src/nls/nls_utf8.c
51 src/blockio.c
52 src/cleanup.c
53 src/close.c
54 src/cmcb.c
55 src/create.c
56 src/debug.c
57 src/devctl.c
58 src/dirctl.c
59 src/dispatch.c
60 src/except.c
61 src/fastio.c
62 src/fileinfo.c
63 src/flush.c
64 src/fsctl.c
65 src/init.c
66 src/lockctl.c
67 src/memory.c
68 src/misc.c
69 src/nls.c
70 src/pnp.c
71 src/read.c
72 src/rfsd.c
73 src/rfsdblock.c
74 src/shutdown.c
75 src/volinfo.c
76 src/write.c
77 inc/rfsd.h)
78
79 add_library(reiserfs SHARED ${SOURCE} src/rfsd.rc)
80
81 if(NOT MSVC)
82 add_target_compile_flags(reiserfs "-Wno-pointer-sign -Wno-unused-function")
83 if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
84 add_target_compile_flags(reiserfs "-Wno-unused-but-set-variable -Wno-unused-variable -Wno-missing-braces")
85 endif()
86 else()
87 #disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
88 replace_compile_flags("/we\"4189\"" " ")
89 add_target_compile_flags(reiserfs "/wd\"4189\" /wd\"4142\" /wd\"4101\"")
90 endif()
91
92 target_link_libraries(reiserfs memcmp ${PSEH_LIB})
93 add_definitions(-D__KERNEL__)
94 set_module_type(reiserfs kernelmodedriver)
95 add_importlibs(reiserfs ntoskrnl hal)
96 add_pch(reiserfs inc/rfsd.h SOURCE)
97 add_cd_file(TARGET reiserfs DESTINATION reactos/system32/drivers NO_CAB FOR all)