fix cmake install directory (for real this time)

* Rename 'develop' folder to 'include/nlohmann'
* Rename 'src' folder to 'single_include/nlohmann'
* Use <nlohmann/*> headers in sources and tests
* Change amalgamate config file
This commit is contained in:
Théo DELRIEU
2018-01-29 11:21:11 +01:00
parent 9958dde3da
commit 14cd019861
73 changed files with 226 additions and 224 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ Licensed under the MIT License <http://opensource.org/licenses/MIT>.
#include <iostream>
#include <sstream>
#include <json.hpp>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
+1 -1
View File
@@ -21,7 +21,7 @@ Licensed under the MIT License <http://opensource.org/licenses/MIT>.
#include <iostream>
#include <sstream>
#include <json.hpp>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
+1 -1
View File
@@ -20,7 +20,7 @@ Licensed under the MIT License <http://opensource.org/licenses/MIT>.
#include <iostream>
#include <sstream>
#include <json.hpp>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
+1 -1
View File
@@ -20,7 +20,7 @@ Licensed under the MIT License <http://opensource.org/licenses/MIT>.
#include <iostream>
#include <sstream>
#include <json.hpp>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("algorithms")
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
// special test case to check if memory is leaked if constructor throws
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("capacity")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <fstream>
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("const_iterator class")
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("iterator class")
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
// shortcut to scan a string literal
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <valarray>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
// helper function to check std::less<json::value_t>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("concepts")
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <deque>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("other constructors and destructor")
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
void check_escaped(const char* original, const char* escaped = "", const bool ensure_ascii = false);
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <deque>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <iostream>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("element access 1")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("element access 2")
+3 -3
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#include <fstream>
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("object inspection")
@@ -316,8 +316,8 @@ TEST_CASE("object inspection")
SECTION("round trips")
{
for (const auto& s :
{"3.141592653589793", "1000000000000000010E5"
})
{"3.141592653589793", "1000000000000000010E5"
})
{
json j1 = json::parse(s);
std::string s1 = j1.dump();
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("iterator_wrapper")
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("iterators 1")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("iterators 2")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <fstream>
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("JSON pointers")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("JSON Merge Patch")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("version information")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("modifiers")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <fstream>
+1 -1
View File
@@ -27,7 +27,7 @@ SOFTWARE.
*/
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("pointer access")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <deque>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("reference access")
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <fstream>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
TEST_CASE("serialization")
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <fstream>
+1 -1
View File
@@ -32,7 +32,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::detail::dtoa_impl::reinterpret_bits;
static float make_float(uint32_t sign_bit, uint32_t biased_exponent, uint32_t significand)
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <fstream>
+1 -1
View File
@@ -28,7 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
+1 -1
View File
@@ -29,7 +29,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
#include <nlohmann/json.hpp>
using nlohmann::json;
#include <fstream>