mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 21:04:26 +00:00
31 lines
520 B
CMake
31 lines
520 B
CMake
|
|
spec2def(powercfg.cpl powercfg.spec)
|
|
|
|
list(APPEND SOURCE
|
|
powercfg.c
|
|
powershemes.c
|
|
alarms.c
|
|
advanced.c
|
|
hibernate.c
|
|
powercfg.h)
|
|
|
|
add_library(powercfg SHARED
|
|
${SOURCE}
|
|
powercfg.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/powercfg.def)
|
|
|
|
set_module_type(powercfg cpl UNICODE)
|
|
|
|
add_importlibs(powercfg
|
|
msvcrt
|
|
user32
|
|
powrprof
|
|
comctl32
|
|
shell32
|
|
advapi32
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_pch(powercfg powercfg.h SOURCE)
|
|
add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all)
|