Merge pull request #1 from zaporozhets/feature/add_linux_build_support

Add linux build support
This commit is contained in:
2023-04-25 14:13:35 +02:00
committed by GitHub

View File

@ -1,3 +1,22 @@
idf_component_register(INCLUDE_DIRS include)
if(DEFINED IDF_TARGET)
idf_component_register(INCLUDE_DIRS include)
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
)
target_compile_definitions(${COMPONENT_TARGET} INTERFACE HAS_UNCAUGHT_EXCEPTIONS=1)
target_include_directories(date PUBLIC
include/
)
endif()