mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 20:57:35 +00:00

This CMakeLists.txt was basically copy-pasted from LibUnicode, where the generated data is separated into its own library. This was to let other libraries / applications decide if they actually want to link the data because it is so large. LibTimeZone's generated data is significantly smaller, so this separation really isn't needed.
10 lines
323 B
CMake
10 lines
323 B
CMake
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
|
|
|
|
set(SOURCES
|
|
TimeZone.cpp
|
|
${TIME_ZONE_DATA_SOURCES}
|
|
)
|
|
|
|
serenity_lib(LibTimeZone timezone)
|
|
target_link_libraries(LibTimeZone LibCore)
|
|
target_compile_definitions(LibTimeZone PRIVATE ENABLE_TIME_ZONE_DATA=$<BOOL:${ENABLE_TIME_ZONE_DATABASE_DOWNLOAD}>)
|