xref: /reactos/dll/win32/powrprof/CMakeLists.txt (revision f3c75078)
1
2spec2def(powrprof.dll powrprof.spec ADD_IMPORTLIB)
3
4add_library(powrprof MODULE
5    powrprof.c
6    powrprof.rc
7    ${CMAKE_CURRENT_BINARY_DIR}/powrprof.def)
8
9if(MSVC)
10    # Disable warning C4312: 'type cast': conversion from 'unsigned int' to 'HANDLE' of greater size
11    target_compile_options(powrprof PRIVATE /wd4312)
12endif()
13
14set_module_type(powrprof win32dll UNICODE)
15target_link_libraries(powrprof wine)
16add_importlibs(powrprof advapi32 user32 comctl32 msvcrt kernel32 ntdll)
17add_cd_file(TARGET powrprof DESTINATION reactos/system32 FOR all)
18