Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / 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 ks.rc
32 ${CMAKE_CURRENT_BINARY_DIR}/ks.def)
33
34 if(MSVC)
35 add_asm_files(ks_asm msvc.S)
36 endif()
37
38 add_library(ks SHARED ${SOURCE} ${ks_asm})
39
40 set_target_properties(ks PROPERTIES SUFFIX ".sys")
41
42 set_entrypoint(ks 0)
43 set_subsystem(ks native)
44 set_image_base(ks 0x00010000)
45
46 target_link_libraries(ks ${PSEH_LIB})
47 add_pch(ks priv.h)
48 add_importlibs(ks ntoskrnl hal)
49 add_dependencies(ks psdk bugcodes)
50 add_cd_file(TARGET ks DESTINATION reactos/system32/drivers FOR all)
51