1 2spec2def(powercfg.cpl powercfg.spec) 3 4list(APPEND SOURCE 5 powercfg.c 6 powershemes.c 7 alarms.c 8 advanced.c 9 hibernate.c 10 powercfg.h) 11 12file(GLOB powercfg_rc_deps resources/*.*) 13add_rc_deps(powercfg.rc ${powercfg_rc_deps}) 14 15add_library(powercfg SHARED 16 ${SOURCE} 17 powercfg.rc 18 ${CMAKE_CURRENT_BINARY_DIR}/powercfg.def) 19 20set_module_type(powercfg cpl UNICODE) 21add_importlibs(powercfg shlwapi user32 powrprof comctl32 shell32 advapi32 msvcrt kernel32 ntdll) 22add_pch(powercfg powercfg.h SOURCE) 23add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all) 24