Add linux build support

This commit is contained in:
Taras Zaporozhets
2023-04-13 19:03:31 +02:00
committed by GitHub
parent b1a75847d5
commit 8ec7f3a36d

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()