[CMAKE]
[reactos.git] / drivers / ksfilter / ks / CMakeLists.txt
1
2 spec2def(ks.sys ks.spec)
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 ks.rc
32 ${CMAKE_CURRENT_BINARY_DIR}/ks.def)
33
34 add_library(ks SHARED ${SOURCE})
35
36 set_target_properties(ks PROPERTIES SUFFIX ".sys")
37
38 set_entrypoint(ks 0)
39 set_subsystem(ks native)
40 set_image_base(ks 0x00010000)
41
42 target_link_libraries(ks ${PSEH_LIB})
43
44 add_importlibs(ks ntoskrnl hal)
45 add_dependencies(ks psdk bugcodes)
46
47 add_cd_file(TARGET ks DESTINATION reactos/system32/drivers FOR all)
48 add_importlib_target(ks.spec)