[MEDIA][CMAKE] Create add_driver_inf cmake function
[reactos.git] / drivers / network / dd / e1000 / CMakeLists.txt
1
2 add_definitions(
3 -DNDIS50_MINIPORT
4 -DNDIS_MINIPORT_DRIVER
5 -DNDIS_LEGACY_MINIPORT)
6
7 list(APPEND SOURCE
8 ndis.c
9 hardware.c
10 info.c
11 interrupt.c
12 nic.h
13 e1000hw.h
14 debug.c
15 debug.h)
16
17 add_library(e1000 MODULE ${SOURCE} e1000.rc)
18 add_pch(e1000 nic.h SOURCE)
19 set_module_type(e1000 kernelmodedriver)
20 add_importlibs(e1000 ndis ntoskrnl hal)
21 add_cd_file(TARGET e1000 DESTINATION reactos/system32/drivers FOR all)
22 add_driver_inf(e1000 nete1000.inf)