Comments (7)
Ok, there where no claims about single header. Only "header only". Sorry and thanks for the library!!!
from thorsserializer.
The old Makefile
stuff works everywhere (unlike CMake), no extra stuff required.
Once it is built you can use it from you CMake files :-)
But the easy way to install is to use it via brew
> brew install thors-serializer`
But building it should be as easy as:
> ./configure
> make
> sudo make install
To use the header only version.
> git clone --single-branch --branch header-only https://github.com/Loki-Astari/ThorsSerializer.git
/PATH/TO/WHERE/I/WANT/TO/INSTALL/ThorsSerializer
g++ -I /PATH/TO/WHERE/I/WANT/TO/INSTALL/ThorsSerializer MyFile.cpp
from thorsserializer.
"Once it is built you can use it from you CMake files :-)"
Do you generate thors-serializerConfig.cmake and thors-serializer.cmake files?
from thorsserializer.
No. But they should be trival to do if you know CMake (which I don't).
The only things you need are:
- where the header files are installed:
-I<ThorHeaderDir>
- where the libraries are installed:
-L<ThorLibraryDir>
- The name of the library;
-l<libraryName>
Default values are (unless you do something special with the ./configure command)
ThorHeaderDir => /usr/local/include
ThorLibraryDir => /usr/local/lib
libraryName => ThorSerialize17
If you build it but don't install it (i.e. you don't have root access).
THOR_ROOT => <The director where you downloaded from git>/ThorsSerializer
ThorHeaderDir => <THOR_ROOT>/build/include
ThorLibraryDir => <THOR_ROOT>/build/lib
libraryName => ThorSerialize17
from thorsserializer.
If you create one I will add to the project for future developers to use.
from thorsserializer.
According to this page: http://doc.aldebaran.com/qibuild/advanced/guide/cmake/writing_a_config_cmake.html
It should look like this:
thors-serializerConfig.cmake
clean(ThorsSerializer)
fpath(ThorsSerializer ThorSerialize/JsonThor.h)
flib(ThorsSerializer OPTIMIZED ThorSerialize17)
flib(ThorsSerializer DEBUG ThorSerialize17D)
export_lib(ThorsSerializer)
Let me know if this works.
from thorsserializer.
Massively cleaned up the header only version.
from thorsserializer.
Related Issues (20)
- How to combine templates and polymorphism? HOT 7
- Maximum number of levels/depth? HOT 5
- No compile enum with 8 and more element HOT 6
- Deserializing to existing object with vectors/pointers? HOT 8
- Std:array not working on header only version HOT 6
- Make under Homebrew results in template error HOT 1
- Make Trait does not work for types with static members with non-standard types HOT 1
- Compilation issue with VisualStudio 2019 on Windows HOT 4
- my compile problem of example1 HOT 1
- Redefine traits at runtime HOT 6
- MakeTrait: error: unable to deduce 'std::initializer_list<auto>' HOT 9
- [Linuxbrew] Trying to prepare v2.2.0 bottle but hitting compilation issues (tried GCC-11 and LLVM) HOT 10
- Linker error on basic example, I am missing something? HOT 4
- Linker Error? HOT 5
- Invalid enum values causes undefined behavior HOT 1
- missing include file magic_enum.hpp HOT 3
- Linker fails with header-only build HOT 11
- Why there is no CMAKE support? HOT 5
- error compiling with std::shared_ptr<const Type> HOT 5
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 thorsserializer.