9dbfaa1bed79b1355fab40381688cc963a6f13de
[reactos.git] / reactos / base / services / nfsd / CMakeLists.txt
1 remove_definitions(-D_WIN32_WINNT=0x502)
2 add_definitions(-D_WIN32_WINNT=0x600)
3 add_definitions(-DNTDDI_VERSION=0x06010000)
4
5 include_directories(
6 ${REACTOS_SOURCE_DIR}/dll/3rdparty/libtirpc/tirpc
7 ${REACTOS_SOURCE_DIR}/drivers/filesystems/nfs
8 ${REACTOS_SOURCE_DIR}/dll/np/nfs)
9
10 list(APPEND SOURCE
11 nfs41_daemon.c
12 daemon_debug.c
13 nfs41_ops.c
14 nfs41_compound.c
15 nfs41_xdr.c
16 nfs41_server.c
17 nfs41_client.c
18 nfs41_superblock.c
19 nfs41_session.c
20 lookup.c
21 mount.c
22 open.c
23 readwrite.c
24 lock.c
25 readdir.c
26 getattr.c
27 setattr.c
28 upcall.c
29 nfs41_rpc.c
30 util.c
31 pnfs_layout.c
32 pnfs_device.c
33 pnfs_debug.c
34 pnfs_io.c
35 name_cache.c
36 namespace.c
37 volume.c
38 callback_server.c
39 callback_xdr.c
40 service.c
41 symlink.c
42 idmap.c
43 delegation.c
44 recovery.c
45 acl.c
46 ea.c)
47
48 add_executable(nfsd ${SOURCE} nfsd.rc)
49
50 if(MSVC)
51 else()
52 # FIXME: Tons of warnings.
53 add_target_compile_flags(nfsd "-w")
54 endif()
55
56 set_module_type(nfsd win32cui)
57 add_importlibs(nfsd advapi32 iphlpapi kernel32_vista libtirpc msvcrt shell32 ws2_32 wldap32 kernel32 ntdll)
58 add_cd_file(TARGET nfsd DESTINATION reactos/system32 FOR all)
59 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/netconfig" DESTINATION reactos/system32/drivers/etc FOR all)
60 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/ms-nfs41-idmap.conf" DESTINATION reactos/system32/drivers/etc FOR all)