27dfba0c024edc19fa4041c7fdde4e4ea3e38d83
[reactos.git] / drivers / bus / acpi / cmbatt / CMakeLists.txt
1
2 list(APPEND SOURCE
3 cmbatt.c
4 cmexec.c
5 cmbpnp.c
6 cmbwmi.c
7 cmbatt.rc)
8
9 add_library(cmbatt SHARED ${CMAKE_CURRENT_BINARY_DIR}/cmbatt_cmbatt.h.gch ${SOURCE})
10
11 set_target_properties(cmbatt PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
12
13 add_importlibs(cmbatt ntoskrnl hal battc wmilib)
14
15 add_pch(cmbatt ${CMAKE_CURRENT_SOURCE_DIR}/cmbatt.h ${SOURCE})
16 add_dependencies(cmbatt psdk bugcodes)