# This is mostly copied from tinyxml's CMakeLists.txt file, removing all test/install related things. # Furthermore, that file requires a more recent cmake than we promise to support in blobby. project(tinyxml2 VERSION 11.0.0) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN YES) add_library(tinyxml2 tinyxml2.cpp tinyxml2.h) add_library(tinyxml2::tinyxml2 ALIAS tinyxml2) target_include_directories(tinyxml2 PUBLIC "$") target_compile_definitions( tinyxml2 PUBLIC $<$:TINYXML2_DEBUG> INTERFACE $<$:TINYXML2_IMPORT> PRIVATE $<$:_CRT_SECURE_NO_WARNINGS> ) set_target_properties( tinyxml2 PROPERTIES DEFINE_SYMBOL "TINYXML2_EXPORT" VERSION "${tinyxml2_VERSION}" SOVERSION "${tinyxml2_VERSION_MAJOR}" )