reactos/win32ss/reactx/dxg/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

27 lines
484 B
CMake

spec2def(dxg.sys dxg.spec)
list(APPEND SOURCE
main.c
ddhmg.c
d3d.c
dd.c
ddraw.c
ddsurf.c
eng.c
historic.c
dxg_int.h)
include_directories(
${REACTOS_SOURCE_DIR}/win32ss/include)
add_library(dxg MODULE
${SOURCE}
dxg.rc
${CMAKE_CURRENT_BINARY_DIR}/dxg.def)
set_module_type(dxg kernelmodedriver)
add_importlibs(dxg dxgthk ntoskrnl)
add_pch(dxg dxg_int.h SOURCE)
add_cd_file(TARGET dxg DESTINATION reactos/system32/drivers FOR all)