reactos/dll/cpl/desk/CMakeLists.txt
Joachim Henze 6f8cb05cad [DESK][SHELL32] Allow Desk.cpl to run standalone on WinXP/2003 again CORE-15412
addendum to 0.4.10-dev-502-g
d559ca9c98

That copy-paste was done once intentionally to keep our imports similar to 2003.
It's worth reading the conversation in PR #748: Getequ seems to be ok with this.

The ideal solution most likely would be to instead *statically*
link against RegLoadMUIStringW() from advapi32_vista when WINNT=0x502.
For now the stuff runs again at least.
I left the func existing in advapi32_vista.dll.
2018-12-17 22:01:49 +01:00

40 lines
814 B
CMake

add_definitions(-D_WIN32)
spec2def(desk.cpl desk.spec)
list(APPEND SOURCE
advmon.c
appearance.c
background.c
classinst.c
desk.c
devsett.c
dibitmap.c
misc.c
preview.c
screensaver.c
advappdlg.c
effappdlg.c
settings.c
monslctl.c
general.c
draw.c
theme.c
muireg.c
desk.h)
file(GLOB desk_rc_deps resources/*.*)
add_rc_deps(desk.rc ${desk_rc_deps})
add_library(desk SHARED
${SOURCE}
guid.c
desk.rc
${CMAKE_CURRENT_BINARY_DIR}/desk.def)
set_module_type(desk cpl UNICODE)
target_link_libraries(desk uuid)
add_importlibs(desk user32 advapi32 gdi32 comctl32 comdlg32 ole32 setupapi shell32 shlwapi uxtheme gdiplus msvcrt kernel32 ntdll)
add_pch(desk desk.h SOURCE)
add_cd_file(TARGET desk DESTINATION reactos/system32 FOR all)