1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/tzlib) 3 4spec2def(timedate.cpl timedate.spec) 5 6list(APPEND SOURCE 7 clock.c 8 dateandtime.c 9 internettime.c 10 monthcal.c 11 timedate.c 12 timezone.c 13 timedate.h) 14 15file(GLOB timedate_rc_deps resources/*.*) 16add_rc_deps(timedate.rc ${timedate_rc_deps}) 17 18add_library(timedate MODULE 19 ${SOURCE} 20 timedate.rc 21 ${CMAKE_CURRENT_BINARY_DIR}/timedate.def) 22 23set_module_type(timedate cpl UNICODE) 24target_link_libraries(timedate tzlib) 25add_importlibs(timedate w32time advapi32 user32 gdi32 comctl32 ws2_32 iphlpapi msvcrt kernel32 ntdll) 26add_pch(timedate timedate.h SOURCE) 27add_cd_file(TARGET timedate DESTINATION reactos/system32 FOR all) 28