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