2023-04-13 19:03:31 +02:00
|
|
|
if(DEFINED IDF_TARGET)
|
|
|
|
idf_component_register(INCLUDE_DIRS include)
|
2023-04-27 14:26:47 +02:00
|
|
|
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 23)
|
2023-04-13 19:03:31 +02:00
|
|
|
target_compile_definitions(${COMPONENT_TARGET} INTERFACE HAS_UNCAUGHT_EXCEPTIONS=1)
|
|
|
|
else()
|
|
|
|
add_library(date
|
|
|
|
include/date/chrono_io.h
|
|
|
|
include/date/date.h
|
|
|
|
include/date/ios.h
|
|
|
|
include/date/islamic.h
|
|
|
|
include/date/iso_week.h
|
|
|
|
include/date/julian.h
|
|
|
|
include/date/ptz.h
|
|
|
|
include/date/solar_hijri.h
|
|
|
|
include/date/tz.h
|
|
|
|
include/date/tz_private.h
|
|
|
|
src/tz.cpp
|
|
|
|
)
|
2021-02-09 18:32:44 +01:00
|
|
|
|
2023-04-13 19:03:31 +02:00
|
|
|
target_include_directories(date PUBLIC
|
|
|
|
include/
|
|
|
|
)
|
|
|
|
endif()
|