mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
![Thomas Faber](/assets/img/avatar_default.png)
- add a user-mode part to the example testlist.c - misc fixes svn path=/branches/GSoC_2011/KMTestSuite/; revision=52549
64 lines
1.6 KiB
CMake
64 lines
1.6 KiB
CMake
include_directories(
|
|
include)
|
|
|
|
#
|
|
# subdirectories containing special-purpose drivers
|
|
#
|
|
#add_subdirectory(something)
|
|
|
|
#
|
|
# kmtest_drv.sys driver
|
|
#
|
|
list(APPEND KMTEST_DRV_SOURCE
|
|
kmtest_drv/kmtest_drv.c
|
|
kmtest_drv/testlist.c
|
|
|
|
example/Example.c
|
|
ntos_ex/ExPools.c
|
|
ntos_ex/ExTimer.c
|
|
ntos_fsrtl/FsRtlExpression.c
|
|
ntos_io/IoDeviceInterface.c
|
|
ntos_io/IoIrp.c
|
|
ntos_io/IoMdl.c
|
|
ntos_ke/KeProcessor.c
|
|
ntos_ob/ObCreate.c
|
|
|
|
kmtest_drv/kmtest_drv.rc)
|
|
|
|
add_library(kmtest_drv SHARED ${KMTEST_DRV_SOURCE})
|
|
|
|
set_module_type(kmtest_drv kernelmodedriver)
|
|
target_link_libraries(kmtest_drv kmtest_printf ${PSEH_LIB})
|
|
add_importlibs(kmtest_drv ntoskrnl hal)
|
|
set_property(TARGET kmtest_drv PROPERTY COMPILE_DEFINITIONS KMT_KERNEL_MODE)
|
|
|
|
add_cd_file(TARGET kmtest_drv DESTINATION reactos/system32/drivers FOR all)
|
|
|
|
add_library(kmtest_printf
|
|
kmtest_drv/printf_stubs.c
|
|
${REACTOS_SOURCE_DIR}/lib/sdk/crt/printf/streamout.c)
|
|
set_property(TARGET kmtest_printf PROPERTY COMPILE_DEFINITIONS _LIBCNT_ _USER32_WSPRINTF wctomb=KmtWcToMb)
|
|
set_property(TARGET kmtest_printf PROPERTY INCLUDE_DIRECTORIES ${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
|
|
|
|
#
|
|
# kmtest.exe loader application
|
|
#
|
|
set_rc_compiler()
|
|
|
|
list(APPEND KMTEST_SOURCE
|
|
kmtest/kmtest.c
|
|
kmtest/service.c
|
|
kmtest/support.c
|
|
kmtest/testlist.c
|
|
|
|
example/Example_user.c
|
|
|
|
kmtest/kmtest.rc)
|
|
|
|
add_executable(kmtest ${KMTEST_SOURCE})
|
|
set_module_type(kmtest win32cui)
|
|
add_importlibs(kmtest advapi32 msvcrt kernel32)
|
|
set_property(TARGET kmtest PROPERTY COMPILE_DEFINITIONS KMT_USER_MODE)
|
|
|
|
add_cd_file(TARGET kmtest DESTINATION reactos/bin FOR all)
|