47846cf03b22ee3f3228c83c300fed008e389271
[reactos.git] / reactos / drivers / storage / classpnp / CMakeLists.txt
1
2 include_directories(../inc)
3 spec2def(classpnp.sys classpnp.spec ADD_IMPORTLIB)
4
5 add_definitions(
6 -DCLASS_GLOBAL_BREAK_ON_LOST_IRPS=0
7 -DCLASS_GLOBAL_SECONDS_TO_WAIT_FOR_SYNCHRONOUS_SRB=100
8 -DCLASS_GLOBAL_USE_DELAYED_RETRY=1
9 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT=0
10 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512
11 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
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 classp.h)
29
30 add_library(classpnp SHARED
31 ${SOURCE}
32 guid.c
33 class.rc
34 ${CMAKE_CURRENT_BINARY_DIR}/classpnp.def)
35
36 if((ARCH STREQUAL "i386") AND (NOT MSVC))
37 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
38 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=switch")
39 endif()
40
41 add_pch(classpnp classp.h SOURCE)
42 target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
43 set_module_type(classpnp kernelmodedriver)
44 add_importlibs(classpnp hal ntoskrnl)
45 add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all)