mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 04:11:30 +00:00
23373acbb9
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.
13 lines
345 B
CMake
13 lines
345 B
CMake
|
|
add_definitions(-D_BATTERYCLASS_)
|
|
spec2def(battc.sys battc.spec ADD_IMPORTLIB)
|
|
|
|
add_library(battc MODULE
|
|
battc.c
|
|
battc.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/battc.def)
|
|
|
|
set_module_type(battc kernelmodedriver)
|
|
add_importlibs(battc ntoskrnl hal)
|
|
add_cd_file(TARGET battc DESTINATION reactos/system32/drivers FOR all)
|