mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 13:33:42 +00:00
7e069ccdb2
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
49 lines
1.2 KiB
CMake
49 lines
1.2 KiB
CMake
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers
|
|
inc)
|
|
|
|
list(APPEND SOURCE
|
|
src/block.c
|
|
src/cleanup.c
|
|
src/close.c
|
|
src/cmcb.c
|
|
src/create.c
|
|
src/debug.c
|
|
src/devctl.c
|
|
src/dirctl.c
|
|
src/dispatch.c
|
|
src/except.c
|
|
src/fastio.c
|
|
src/ffs.c
|
|
src/fileinfo.c
|
|
src/flush.c
|
|
src/fsctl.c
|
|
src/init.c
|
|
src/lock.c
|
|
src/memory.c
|
|
src/misc.c
|
|
src/pnp.c
|
|
src/read.c
|
|
src/shutdown.c
|
|
src/volinfo.c
|
|
src/write.c
|
|
inc/ffsdrv.h)
|
|
|
|
add_library(ffs MODULE ${SOURCE} src/ffsdrv.rc)
|
|
|
|
if(USE_CLANG_CL OR (NOT MSVC))
|
|
target_compile_options(ffs PRIVATE -Wno-pointer-sign -Wno-unused-function)
|
|
target_compile_options(ffs PRIVATE -Wno-unused-variable -Wno-missing-braces)
|
|
if(USE_CLANG_CL)
|
|
target_compile_options(ffs PRIVATE -Wno-empty-body)
|
|
else()
|
|
target_compile_options(ffs PRIVATE -Wno-unused-but-set-variable)
|
|
endif()
|
|
endif()
|
|
|
|
add_definitions(-D__KERNEL__)
|
|
set_module_type(ffs kernelmodedriver)
|
|
target_link_libraries(ffs memcmp ${PSEH_LIB})
|
|
add_importlibs(ffs ntoskrnl hal)
|
|
add_pch(ffs inc/ffsdrv.h SOURCE)
|
|
add_cd_file(TARGET ffs DESTINATION reactos/system32/drivers FOR all)
|
|
|