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