1 2add_definitions(-D_WIN32) 3spec2def(desk.cpl desk.spec) 4 5remove_definitions(-D_WIN32_WINNT=0x502) 6add_definitions(-D_WIN32_WINNT=0x600) 7 8list(APPEND SOURCE 9 advmon.c 10 appearance.c 11 background.c 12 classinst.c 13 desk.c 14 devsett.c 15 dibitmap.c 16 misc.c 17 preview.c 18 screensaver.c 19 advappdlg.c 20 effappdlg.c 21 settings.c 22 monslctl.c 23 general.c 24 draw.c 25 theme.c 26 desk.h) 27 28file(GLOB desk_rc_deps resources/*.*) 29add_rc_deps(desk.rc ${desk_rc_deps}) 30 31add_library(desk SHARED 32 ${SOURCE} 33 guid.c 34 desk.rc 35 ${CMAKE_CURRENT_BINARY_DIR}/desk.def) 36 37set_module_type(desk cpl UNICODE) 38target_link_libraries(desk uuid) 39add_importlibs(desk user32 advapi32 advapi32_vista gdi32 comctl32 comdlg32 ole32 setupapi shell32 shlwapi uxtheme gdiplus msvcrt kernel32 ntdll) 40add_pch(desk desk.h SOURCE) 41add_cd_file(TARGET desk DESTINATION reactos/system32 FOR all) 42