2019-04-28 07:38:46 +00:00
|
|
|
idf_component_register(SRCS "main.cpp"
|
|
|
|
INCLUDE_DIRS "."
|
|
|
|
EMBED_TXTFILES "sample.xml")
|
2018-11-11 07:36:24 +00:00
|
|
|
|
|
|
|
# Build static library, do not build test executables
|
|
|
|
option(BUILD_SHARED_LIBS OFF)
|
|
|
|
option(BUILD_TESTING OFF)
|
|
|
|
|
2019-04-26 09:51:48 +00:00
|
|
|
# Unfortunately the library performs install and export. Would
|
|
|
|
# have been nice if devs made that an option like BUILD_SHARED_LIBS
|
|
|
|
# and BUILD_TESTING. Override install() and export() to do nothing
|
|
|
|
# instead.
|
|
|
|
function(install)
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
function(export)
|
|
|
|
endfunction()
|
|
|
|
|
2018-11-11 07:36:24 +00:00
|
|
|
# Import tinyxml2 targets
|
|
|
|
add_subdirectory(lib/tinyxml2)
|
|
|
|
|
|
|
|
# Link tinyxml2 to main component
|
2019-06-04 11:05:33 +00:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC tinyxml2)
|