[CMAKE]
[reactos.git] / reactos / drivers / ksfilter / ks / CMakeLists.txt
1
2 spec2def(ks.sys ks.spec ADD_IMPORTLIB)
3
4 add_definitions(
5 -DBUILDING_KS
6 -D_COMDDK_)
7
8 list(APPEND SOURCE
9 api.c
10 allocators.c
11 bag.c
12 device.c
13 deviceinterface.c
14 driver.c
15 clocks.c
16 connectivity.c
17 event.c
18 filter.c
19 filterfactory.c
20 image.c
21 irp.c
22 methods.c
23 misc.c
24 pin.c
25 property.c
26 topology.c
27 unknown.c
28 worker.c
29 kcom.c
30 swenum.c
31 precomp.h)
32
33 if(MSVC)
34 add_asm_files(ks_asm msvc.S)
35 endif()
36
37 add_library(ks SHARED
38 ${SOURCE}
39 ${ks_asm}
40 ks.rc
41 ${CMAKE_CURRENT_BINARY_DIR}/ks.def)
42
43 set_module_type(ks kernelmodedriver ENTRYPOINT 0)
44
45 target_link_libraries(ks ${PSEH_LIB})
46 add_pch(ks precomp.h SOURCE)
47 add_importlibs(ks ntoskrnl hal)
48 add_dependencies(ks psdk)
49 add_cd_file(TARGET ks DESTINATION reactos/system32/drivers FOR all)
50