reactos/dll/cpl/timedate/CMakeLists.txt
Hermès Bélusca-Maïto 7c3e96a26a
[TIMEDATE.CPL][SYSSETUP][TZLIB] Introduce a small static library "tzlib": "TimeZone Utilities Library", and use it in timedate.cpl and syssetup.dll.
This small win32 library provides time-zone utility wrappers around
Win32 functions, that are used by different ReactOS modules such as
timedate.cpl, syssetup.dll, and a possible future 'tzutil' tool.

The code has been extracted from the common code found in both
timedate.cpl and syssetup.dll.
2020-04-22 00:58:32 +02:00

28 lines
700 B
CMake

include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/tzlib)
spec2def(timedate.cpl timedate.spec)
list(APPEND SOURCE
clock.c
dateandtime.c
internettime.c
monthcal.c
timedate.c
timezone.c
timedate.h)
file(GLOB timedate_rc_deps resources/*.*)
add_rc_deps(timedate.rc ${timedate_rc_deps})
add_library(timedate MODULE
${SOURCE}
timedate.rc
${CMAKE_CURRENT_BINARY_DIR}/timedate.def)
set_module_type(timedate cpl UNICODE)
target_link_libraries(timedate tzlib)
add_importlibs(timedate w32time advapi32 user32 gdi32 comctl32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
add_pch(timedate timedate.h SOURCE)
add_cd_file(TARGET timedate DESTINATION reactos/system32 FOR all)