[CMAKE]
[reactos.git] / drivers / storage / classpnp / CMakeLists.txt
1
2 include_directories(../inc)
3
4 add_definitions(
5 -DCLASS_GLOBAL_BREAK_ON_LOST_IRPS=0
6 -DCLASS_GLOBAL_SECONDS_TO_WAIT_FOR_SYNCHRONOUS_SRB=100
7 -DCLASS_GLOBAL_USE_DELAYED_RETRY=1
8 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT=0
9 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512
10 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512
11 )
12
13 list(APPEND SOURCE
14 autorun.c
15 class.c
16 classwmi.c
17 clntirp.c
18 create.c
19 data.c
20 debug.c
21 dictlib.c
22 lock.c
23 obsolete.c
24 power.c
25 retry.c
26 utils.c
27 xferpkt.c
28 class.rc
29 )
30
31 spec2def(classpnp ${CMAKE_CURRENT_SOURCE_DIR}/class.spec ${CMAKE_CURRENT_BINARY_DIR}/class.def)
32
33 add_library(classpnp SHARED ${SOURCE})
34 target_link_libraries(classpnp ${CMAKE_CURRENT_BINARY_DIR}/class.def pseh libcntpr)
35
36
37 set_module_type(classpnp kernelmodedriver)
38
39 add_importlibs(classpnp hal ntoskrnl)
40
41 add_minicd_target(classpnp reactos classpnp.sys)
42 add_livecd_target(classpnp reactos/system32/drivers)