- Requirements:
- CMake 3.18 or later.
- A C++20 or later compiler.
- Steps:
- Install vcpkg, if need be.
- Make sure to run vcpkg integrate install.
- Enter within a terminal vcpkg install jsonifier:x64-windows_OR_linux.
- Set up a project in your IDE and make sure to set the C++ standard to C++20 or later - and include
<jsonifier/Index.hpp>
. - Build and run!
- Requirements:
- CMake 3.18 or later.
- A C++20 or later compiler.
- Steps: Add the following to your CMakeLists.txt build script.
include(FetchContent)
FetchContent_Declare(
Jsonifier
GIT_REPOSITORY https://github.com/RealTimeChris/Jsonifier.git
GIT_TAG main
)
FetchContent_MakeAvailable(Jsonifier)
target_link_libraries("${PROJECT_NAME}" PRIVATE jsonifier::Jsonifier)
- Requirements:
- CMake 3.18 or later.
- A C++20 or later compiler.
- Steps:
- Clone this repo into a folder.
- Set the installation directory if you wish, using the
CMAKE_INSTALL_PREFIX
variable in CMakeLists.txt. - Enter the directory in a terminal, and enter
cmake -S . --preset=Windows_OR_Linux-Release_OR_Debug
. - Enter within the same terminal,
cmake --build --preset=Windows_OR_Linux-Release_OR_Debug
. - Enter within the same terminal,
cmake --install ./Build/Release_OR_Debug
. - Now within the CMakeLists.txt of the project you wish to use the library in, set Jsonifier_DIR to wherever you set the
CMAKE_INSTALL_PREFIX
to, and then usefind_package(Jsonifier CONFIG REQUIRED)
and thentarget_link_libraries("${PROJECT_NAME}" PUBLIC/PRIVATE jsonifier::Jsonifier)
.