Comments (9)
I haven't, honestly. With only 2 cpp files, building is pretty straightforward. I wouldn't mind including a sub-directory with the CMake setup, but I don't want to take the time to test / maintain it.
from tinyxml2.
Using CMake directly provide support for any platform and compiler supported by CMake.
I think using CMake will reduce the among of effort for maintaining the solution.
With my pull request you benefit from out of source build why avoid to pollute the source with the compiler generated files.
I can also update the CMakeFiles to support CTest, giving you an easy test framework to expend your tests over time.
from tinyxml2.
IMHO CMake seems like overkill for a single file solution that in reality should just be embedded into the target project, the build system used now is more focused on building the test file and that's it (Lee can correct me if I'm wrong). It might take more time to get CMake setup, the project configured and generated than it would building the actual code base itself.
But... as a CMake fan and avid user, I do see the pro's of having it around, specially if built inside a bigger CMake project (which I do myself).
I dunno, it's up to Lee.
from tinyxml2.
Yes, I'm rather nervous about this. Portability is generally good, but any place the cmake/project framework doesn't work becomes a bug...and a bug in the project file for the test framework. Groovounet, I appreciate the patch, but this one feels like more work than the value it will add.
The current patches cover VC, XCode, and gcc, which is pretty broad coverage.
from tinyxml2.
I personal think that using a Visual C++ solution is an overkill. ;)
I also want to use TinyXML in a larger project but will separately.
from tinyxml2.
@Groovounet This is how I "usually" use TX(2) with my project + CMake:
https://github.com/gamaral/marshmallow_h/tree/master/contrib/tinyxml2
That way I can update it automagically using git submodule, works pretty well. :)
from tinyxml2.
Visual C++ overkill. :) Yeah, as my primary development platform, you are all burdened/benefited by that. :)
from tinyxml2.
Once we had the example file issue nailed down, this made more sense. Integrated. Closing thread.
from tinyxml2.
Nice! :D
from tinyxml2.
Related Issues (20)
- Why return XML_ ERROR_ PARSING? HOT 2
- Documentation error? HOT 2
- Turkish Characters Support HOT 1
- When will tinyxml release a new version? HOT 1
- Assessment of the difficulty in porting CPU architecture for tinyXML2 HOT 1
- Support for char8_t and std::u8string HOT 2
- Using IntText(); HOT 1
- FirstChildElement and namespace prefixes.
- Bug with XMLElement::Attribute - it returns 0 instead of "value" if it can't find the attribute -
- Is the Doxygen tagfile published anywhere?
- v10: MinGW DLL build behavior change
- porty guide from tinyxml1
- Tags for versions below 2.0.1
- `Error()` returns false for corrupted XML (when there is no starting tag) HOT 1
- Add xmake build system HOT 1
- xmltest.exe fail Error opening test file 'dream.xml'
- Compilation warnings
- tinyxml2 can not deal this text:   
- Adding gnbon to `auto_ccs` for OSS-Fuzz Integration
- invalid conversion from 'iso_s32*' {aka 'long int*'} to 'int*' [-fpermissive]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinyxml2.