Skip to content

Instantly share code, notes, and snippets.

@traversaro
Created October 28, 2018 15:01
Show Gist options
  • Save traversaro/c27938365ca06f0f95facc887275a42e to your computer and use it in GitHub Desktop.
Save traversaro/c27938365ca06f0f95facc887275a42e to your computer and use it in GitHub Desktop.
TinyXML build example
cmake_minimum_required(VERSION 3.5)
find_package(cmake_modules REQUIRED)
find_package(TinyXML REQUIRED)
add_executable(tinyxml_test tinyxml_test.cpp)
target_include_directories(tinyxml_test PRIVATE ${TinyXML_INCLUDE_DIRS})
target_link_libraries(tinyxml_test PRIVATE ${TinyXML_LIBRARIES})
#include <tinyxml.h>
#include <string>
int main()
{
TiXmlDocument dummy1;
std::string dummy2;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment