[CMAKE]
[reactos.git] / dll / cpl / powercfg / CMakeLists.txt
1
2 set_unicode()
3
4 spec2def(powercfg ${CMAKE_CURRENT_SOURCE_DIR}/powercfg.spec ${CMAKE_CURRENT_BINARY_DIR}/powercfg.def)
5
6 add_library(powercfg SHARED
7 powercfg.c
8 powershemes.c
9 alarms.c
10 advanced.c
11 hibernate.c
12 powercfg.rc)
13
14
15 set_module_type(powercfg cpl)
16
17 target_link_libraries(powercfg ${CMAKE_CURRENT_BINARY_DIR}/powercfg.def)
18
19 add_importlibs(powercfg
20 msvcrt
21 user32
22 powrprof
23 comctl32
24 shell32
25 advapi32
26 kernel32)
27
28 add_dependencies(powercfg powercfg_def)
29 add_cab_target(powercfg 1)