[KMTESTS:CC] Add a test showing our CcPinMappedData() implementation is broken
[reactos.git] / modules / rostests / kmtests / CMakeLists.txt
index dfc6c98..623188e 100644 (file)
@@ -5,6 +5,7 @@ include_directories(include)
 # subdirectories containing special-purpose drivers
 #
 add_subdirectory(example)
+add_subdirectory(fltmgr)
 add_subdirectory(hidparse)
 add_subdirectory(kernel32)
 add_subdirectory(ntos_cc)
@@ -30,6 +31,7 @@ list(APPEND COMMON_SOURCE
 list(APPEND KMTEST_DRV_SOURCE
     kmtest_drv/guid.c
     kmtest_drv/kmtest_drv.c
+    kmtest_drv/structs.c
     kmtest_drv/testlist.c
 
     example/Example.c
@@ -118,16 +120,25 @@ add_target_include_directories(kmtest_printf ${REACTOS_SOURCE_DIR}/sdk/lib/crt/i
 #
 
 list(APPEND KMTEST_SOURCE
+    kmtest/filter.c
+    kmtest/fltsupport.c
     kmtest/kmtest.c
     kmtest/service.c
     kmtest/support.c
     kmtest/testlist.c
 
     example/Example_user.c
+
+    fltmgr/fltmgr_load/fltmgr_user.c
+    fltmgr/fltmgr_register/fltmgr_reg_user.c
+
     hidparse/HidP_user.c
     kernel32/FileAttributes_user.c
     kernel32/FindFile_user.c
     ntos_cc/CcCopyRead_user.c
+    ntos_cc/CcMapData_user.c
+    ntos_cc/CcPinMappedData_user.c
+    ntos_cc/CcPinRead_user.c
     ntos_io/IoCreateFile_user.c
     ntos_io/IoDeviceObject_user.c
     ntos_io/IoReadWrite_user.c
@@ -142,12 +153,11 @@ list(APPEND KMTEST_SOURCE
 add_executable(kmtest ${KMTEST_SOURCE})
 set_module_type(kmtest win32cui)
 target_link_libraries(kmtest ${PSEH_LIB})
-add_importlibs(kmtest advapi32 ws2_32 msvcrt kernel32 ntdll)
-add_target_compile_definitions(kmtest KMT_USER_MODE)
+add_importlibs(kmtest fltlib advapi32 ws2_32 msvcrt kernel32 ntdll)
+add_target_compile_definitions(kmtest KMT_USER_MODE NTDDI_VERSION=NTDDI_WS03SP1)
 #add_pch(kmtest include/kmt_test.h)
 set_target_properties(kmtest PROPERTIES OUTPUT_NAME "kmtest_")
-#add_rostests_file(TARGET kmtest)
-add_cd_file(TARGET kmtest DESTINATION reactos/bin FOR all)
+add_rostests_file(TARGET kmtest)
 
 #
 # Group targets
@@ -166,7 +176,8 @@ add_dependencies(kmtest_drivers
     ntcreatesection_drv
     poirp_drv
     tcpip_drv
-    cccopyread_drv)
+    cccopyread_drv
+    ccmapdata_drv)
 
 add_custom_target(kmtest_all)
 add_dependencies(kmtest_all kmtest_drivers kmtest)