1 2include_directories(../include) 3 4# 5# NtCreateSection 6# 7list(APPEND NTCREATESECTION_DRV_SOURCE 8 ../kmtest_drv/kmtest_standalone.c 9 NtCreateSection_drv.c) 10 11add_library(ntcreatesection_drv MODULE ${NTCREATESECTION_DRV_SOURCE}) 12set_module_type(ntcreatesection_drv kernelmodedriver) 13target_link_libraries(ntcreatesection_drv kmtest_printf ${PSEH_LIB}) 14add_importlibs(ntcreatesection_drv ntoskrnl hal) 15target_compile_definitions(ntcreatesection_drv PRIVATE KMT_STANDALONE_DRIVER) 16#add_pch(ntcreatesection_drv ../include/kmt_test.h) 17add_rostests_file(TARGET ntcreatesection_drv) 18 19# 20# MmMapLockedPagesSpecifyCache 21# 22list(APPEND MMMAPLOCKEDPAGESSPECIFYCACHE_DRV_SOURCE 23 ../kmtest_drv/kmtest_standalone.c 24 MmMapLockedPagesSpecifyCache_drv.c) 25 26add_library(mmmaplockedpagesspecifycache_drv MODULE ${MMMAPLOCKEDPAGESSPECIFYCACHE_DRV_SOURCE}) 27set_module_type(mmmaplockedpagesspecifycache_drv kernelmodedriver) 28target_link_libraries(mmmaplockedpagesspecifycache_drv kmtest_printf ${PSEH_LIB}) 29add_importlibs(mmmaplockedpagesspecifycache_drv ntoskrnl hal) 30target_compile_definitions(mmmaplockedpagesspecifycache_drv PRIVATE KMT_STANDALONE_DRIVER) 31#add_pch(mmmaplockedpagesspecifycache_drv ../include/kmt_test.h) 32add_rostests_file(TARGET mmmaplockedpagesspecifycache_drv) 33