mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 12:26:32 +00:00
677f190f4c
Global standard is C99.
27 lines
801 B
CMake
27 lines
801 B
CMake
list(APPEND SOURCE
|
|
nfs41_driver.c
|
|
nfs41_debug.c
|
|
nfs41_driver.h
|
|
nfs41_debug.h)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/dll/np/nfs)
|
|
|
|
add_definitions(-DRDBSS_TRACKER)
|
|
|
|
add_library(nfs41_driver MODULE ${SOURCE} nfs.rc)
|
|
set_module_type(nfs41_driver kernelmodedriver)
|
|
target_link_libraries(nfs41_driver ntoskrnl_vista rdbsslib rxce copysup memcmp ${PSEH_LIB})
|
|
add_importlibs(nfs41_driver ntoskrnl hal)
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
target_compile_options(nfs41_driver PRIVATE "-Wno-switch")
|
|
endif()
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
target_compile_options(nfs41_driver PRIVATE "-Wno-unused-value")
|
|
endif()
|
|
|
|
add_cd_file(TARGET nfs41_driver DESTINATION reactos/system32/drivers FOR all)
|
|
add_registry_inf(nfs41_reg.inf)
|