Tobias Nießen
928fa96db7
Fix typo in README
3 years ago
Eric Haszlakiewicz
a5c2e11460
Cause the cmake include dirs to also have ${CMAKE_INSTALL_INCLUDEDIR}/json-c, so downstream packages that use cmake to link against json-c can choose whether to include headers as just e.g. #include <json_object.h>, if they care to do so.
Update the README to better explain this, and make a few other tweaks.
3 years ago
Eric Haszlakiewicz
f1fb9abf14
Note the need to also set CTEST_OUTPUT_ON_FAILURE to get test output
3 years ago
Leon Gross
8be2ffdcd7
fix cmake version for tests
4 years ago
Jakov Smolic
55bf2d365d
README: fix spelling errors
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
5 years ago
Eric Haszlakiewicz
730e3d044f
Issue #594 - provide an OVERRIDE_GET_RANDOM_SEED cmake variable to override json_c_get_random_seed() for embedded platforms where time(NULL) doesn't work.
Example:
mkdir build && cd build
cmake -DOVERRIDE_GET_RANDOM_SEED='do { extern uint32_t getMsTicks(void); int ms = getMsTicks() * 433494437; return ms; } while(0)' ..
5 years ago
Eric Haszlakiewicz
9a7de35b92
Add some more detail about how to use json-c in README.md.
5 years ago
Eric Haszlakiewicz
2508109b18
Remove the obsolete README.json_object-split.md, and mark README.md as being the doxygen mainpage.
5 years ago
Micah Snyder
60494684a1
Issue #508 : `-fPIC` to link libjson-c.a with libs
json-c has symbol collisions with other popular C JSON libraries.
To prevent random crashes in downstream applications that may use a
library which depends on json-c, the solution is to statically link
libjson-c.a into those libraries.
`-fPIC`/`-fPIE` is required when building a `.a` so it can be linked
into a `.so`.
5 years ago
Björn Esser
a85d2395ff
README: Update configuration options for CMake.
5 years ago
dota17
e97fc20bfd
update
5 years ago
dota17
952db0f397
support to build both static and shared libraries
5 years ago
Björn Esser
73a2ed115a
Remove multiple trailing newlines at EOF.
5 years ago
Björn Esser
78cd37fb18
Clean trailing white-space.
5 years ago
Eric Haszlakiewicz
270dc2f999
Update README.md to remove autoconf instructions in favor of cmake.
5 years ago
dota17
203bacb24d
add the badge in README.md and test the coveralls
5 years ago
dota17
1160c8625c
Add uninstall target in cmake
5 years ago
dota17
e3b6521baa
add doc target on cmake
5 years ago
Chen
0ccb296263
Update README.md
5 years ago
dota17
f69fbd897b
Added documentation for camke-configure
5 years ago
Eric Haszlakiewicz
bdaff94e9a
Build and run the tests as part of the cmake build.
5 years ago
grdowns
7ef51239a9
Update dependencies
6 years ago
grdowns
760c1e284c
Add vcpkg installation instructions
6 years ago
andy5995
1c7e891e44
"make its use in" [skip ci]
6 years ago
andy5995
e2f46b9f79
partial revert (make use) [skip ci]
6 years ago
andy5995
3969487376
README.md:fix 2 typos
6 years ago
Eric Haszlakiewicz
6460446aa6
Switch to building a dynamic lib by default. Tweak language in the README.md slightly. Inspired by PR#452.
6 years ago
andy5995
71f5c2d50b
README.md:fix dead "file.html" link
6 years ago
Unmanned Player
f2e991a341
The real CMake support
This patch provides a CMakeLists.txt file to build JSON-C library without relying on auto-tools support. This makes the build a bit more portable and cleaner.
It can detect headers and symbols and generate config.h header file based on those detections. It cannot yet handle ctest(1) as the testing itself depends on comparing the output against files. Testing would need some creative abuse of CMake :) This will be provided a few patches later and may possibly involve refactoring test cases.
The patch has been tested on GCC 4.8.5 (Linux), GCC 7.2.0 (MinGW) and Microsoft Visual C++ 16.0 (2010?) locally. Also, compiles correctly on Travis CI and AppVeyor without errors.
7 years ago
Alexander Dahl
89747ac758
doc: Use other doxygen feature to specify mainpage
Previously a special tag was added to README.md to make this the
main page in Doxygen generated docs. When viewing the README on the
GitHub page this tag was not hidden.
After upgrading to Doxygen 1.8.8 (and above) in changeset
219025727d
a new Doxygen feature can be
used to specify the main page: Since release 1.8.3 Doxygen has a special
option to set a markdown file as main page. When using this option we
can drop the tag, making the README rendered by GitHub nice to look at.
Fixes: ae66b24369
7 years ago
Eric Haszlakiewicz
c01635e03e
Rearrange README.md a bit and make it work better in the doxygen generated docs.
Also, add a table of contents, and a brief section on using json-c with links to
the header files most likely to be useful.
7 years ago
Eric Haszlakiewicz
2d1da5ab13
Add a --enable-threading configure option, and only use the (slower) __sync_add_and_fetch()/__sync_sub_and_fetch() function when it is specified.
8 years ago
Alexandru Ardelean
061afc7993
README.md: show build status tag from travis & appveyor.
Looks nice to see a `Build Passing` tag when you
scroll to the README.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Eric Haszlakiewicz
5e33dabda1
Issue #308 : improve the build instructions in README.md to include the exact commands to run for installing prerequisites, as mentioned earlier on Issue #308 .
8 years ago
Eric Haszlakiewicz
779b77a164
Note some minimum versions needed for autoconf, etc...
8 years ago
Nicola Spanti (RyDroid)
f2e7dda910
Improving README
9 years ago
Eric Haszlakiewicz
ae66b24369
Mention that we're aiming to follow RFC 7159 now.
Cause README.md to show up in Doxygen output as the main page.
9 years ago
Michael Clark
0e1a057449
Remove reference to svn.metaparadigm.com
svn.metaparadigm.com no longer exists so it is not possible to use source from there.
9 years ago
Eric Haszlakiewicz
4569e3e430
Fix minor typo in README file.
11 years ago
Haneef Mubarak
7870978c2e
Update README.md
- code blocks
- slight text changes (rewording)
- pretty printing
11 years ago
Haneef Mubarak
23620b827c
Update and rename README to README.md
Markdownify + fix a few errors here and there
11 years ago