mirror of
https://github.com/reactos/reactos.git
synced 2024-08-23 19:58:25 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
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.
24 lines
582 B
CMake
24 lines
582 B
CMake
|
|
spec2def(powercfg.cpl powercfg.spec)
|
|
|
|
list(APPEND SOURCE
|
|
powercfg.c
|
|
powershemes.c
|
|
alarms.c
|
|
advanced.c
|
|
hibernate.c
|
|
powercfg.h)
|
|
|
|
file(GLOB powercfg_rc_deps resources/*.*)
|
|
add_rc_deps(powercfg.rc ${powercfg_rc_deps})
|
|
|
|
add_library(powercfg MODULE
|
|
${SOURCE}
|
|
powercfg.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/powercfg.def)
|
|
|
|
set_module_type(powercfg cpl UNICODE)
|
|
add_importlibs(powercfg shlwapi user32 powrprof comctl32 shell32 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(powercfg powercfg.h SOURCE)
|
|
add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all)
|