diff --git a/src/json/json.hpp b/include/nlohmann/json.hpp similarity index 100% rename from src/json/json.hpp rename to include/nlohmann/json.hpp diff --git a/src/bnetd/CMakeLists.txt b/src/bnetd/CMakeLists.txt index 1299001..a5ecffa 100644 --- a/src/bnetd/CMakeLists.txt +++ b/src/bnetd/CMakeLists.txt @@ -34,7 +34,6 @@ set(BNETD_SOURCES luaobjects.cpp luaobjects.h luawrapper.cpp luawrapper.h i18n.cpp i18n.h userlog.cpp userlog.h ../win32/winmain.cpp ../win32/winmain.h - ../json/json.hpp ) set(BNETD_CONSOLE_RESOURCES @@ -51,6 +50,8 @@ endif(WITH_WIN32_GUI) target_include_directories(bnetd PRIVATE + $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/> + $<INSTALL_INTERFACE:include/> ${ZLIB_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} ${LUA_INCLUDE_DIR} diff --git a/src/bnetd/adbanner.cpp b/src/bnetd/adbanner.cpp index 6bdf819..cd6a0ba 100644 --- a/src/bnetd/adbanner.cpp +++ b/src/bnetd/adbanner.cpp @@ -29,7 +29,7 @@ #include <vector> #include "i18n.h" -#include "json/json.hpp" +#include <nlohmann/json.hpp> #include "common/bn_type.h" #include "common/tag.h" diff --git a/src/bnetd/topic.cpp b/src/bnetd/topic.cpp index 07df581..52ef682 100644 --- a/src/bnetd/topic.cpp +++ b/src/bnetd/topic.cpp @@ -27,7 +27,7 @@ #include <utility> #include <optional.hpp> -#include "json/json.hpp" +#include <nlohmann/json.hpp> #include "compat/strcasecmp.h" diff --git a/src/bnetd/versioncheck.cpp b/src/bnetd/versioncheck.cpp index 3bbe6ed..76883bd 100644 --- a/src/bnetd/versioncheck.cpp +++ b/src/bnetd/versioncheck.cpp @@ -39,7 +39,7 @@ #include <unordered_map> #include <fmt/format.h> -#include "json/json.hpp" +#include <nlohmann/json.hpp> #include "common/eventlog.h" #include "common/field_sizes.h"