[CMAKE]
[reactos.git] / drivers / filesystems / ext2 / CMakeLists.txt
1 include_directories(inc)
2
3 list(APPEND SOURCE
4 src/volinfo.c
5 src/create.c
6 src/write.c
7 src/metadata.c
8 src/fastio.c
9 src/dircntrl.c
10 src/DiskIO.c
11 src/fsctrl.c
12 src/devcntrl.c
13 src/flush.c
14 src/ext2init.c
15 src/io.c
16 src/close.c
17 src/fileinfo.c
18 src/read.c
19 src/cleanup.c
20 src/misc.c
21 src/shutdown.c)
22
23 add_library(ext2fs SHARED ${SOURCE})
24
25 set_target_properties(ext2fs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
26
27
28 target_link_libraries(ext2fs
29 -lntoskrnl
30 -lhal)
31
32 add_dependencies(ext2fs psdk bugcodes)
33 add_minicd_target(ext2fs reactos ext2.sys)
34 add_livecd_target(ext2fs reactos/system32/drivers ext2.sys)