- Update to r53061
[reactos.git] / drivers / wmi / CMakeLists.txt
1
2 spec2def(wmilib.sys wmilib.spec)
3
4 list(APPEND SOURCE
5 wmilib.c
6 wmilib.rc
7 ${CMAKE_CURRENT_BINARY_DIR}/wmilib.def)
8
9 add_library(wmilib SHARED ${SOURCE})
10
11 if(NOT MSVC)
12 set_module_type(wmilib kernelmodedriver)
13 else()
14 set_target_properties(wmilib PROPERTIES SUFFIX ".sys")
15 set_subsystem(wmilib native)
16 set_image_base(wmilib 0x00010000)
17 add_linkerflag(wmilib "/DRIVER")
18 add_dependencies(wmilib bugcodes)
19 add_dependencies(wmilib psdk)
20 endif()
21
22 set_entrypoint(wmilib 0)
23 set_target_properties(wmilib PROPERTIES SUFFIX ".sys")
24 add_importlibs(wmilib ntoskrnl)
25 add_importlib_target(wmilib.spec)
26 add_cd_file(TARGET wmilib DESTINATION reactos/system32/drivers FOR all)