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