1list(APPEND SOURCE
2    nfs41_driver.c
3    nfs41_debug.c
4    nfs41_driver.h
5    nfs41_debug.h)
6
7include_directories(
8    ${REACTOS_SOURCE_DIR}/dll/np/nfs)
9
10add_definitions(-DRDBSS_TRACKER)
11
12add_library(nfs41_driver MODULE ${SOURCE} nfs.rc)
13set_module_type(nfs41_driver kernelmodedriver)
14target_link_libraries(nfs41_driver ntoskrnl_vista rdbsslib rxce copysup memcmp ${PSEH_LIB})
15add_importlibs(nfs41_driver ntoskrnl hal)
16
17if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
18    target_compile_options(nfs41_driver PRIVATE "-Wno-switch")
19endif()
20
21if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
22    target_compile_options(nfs41_driver PRIVATE "-Wno-unused-value")
23endif()
24
25add_cd_file(TARGET nfs41_driver DESTINATION reactos/system32/drivers FOR all)
26add_registry_inf(nfs41_reg.inf)
27