[CMAKE] Use modules instead of shared libraries
[reactos.git] / win32ss / reactx / dxg / CMakeLists.txt
1
2 spec2def(dxg.sys dxg.spec)
3
4 list(APPEND SOURCE
5 main.c
6 ddhmg.c
7 d3d.c
8 dd.c
9 ddraw.c
10 ddsurf.c
11 eng.c
12 historic.c
13 dxg_int.h)
14
15 include_directories(
16 ${REACTOS_SOURCE_DIR}/win32ss/include)
17
18 add_library(dxg MODULE
19 ${SOURCE}
20 dxg.rc
21 ${CMAKE_CURRENT_BINARY_DIR}/dxg.def)
22
23 set_module_type(dxg kernelmodedriver)
24 add_importlibs(dxg dxgthk ntoskrnl)
25 add_pch(dxg dxg_int.h SOURCE)
26 add_cd_file(TARGET dxg DESTINATION reactos/system32/drivers FOR all)