ADD: added the use of a local build curlpp library
This commit is contained in:
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -4,12 +4,12 @@
|
||||
[submodule "libs/yaml-cpp"]
|
||||
path = libs/yaml-cpp
|
||||
url = https://github.com/jbeder/yaml-cpp.git
|
||||
[submodule "libs/curlcpp"]
|
||||
path = libs/curlcpp
|
||||
url = https://github.com/JosephP91/curlcpp.git
|
||||
[submodule "libs/nlohmann_json"]
|
||||
path = libs/nlohmann_json
|
||||
url = https://github.com/nlohmann/json.git
|
||||
[submodule "libs/crossguid"]
|
||||
path = libs/crossguid
|
||||
url = https://github.com/graeme-hill/crossguid.git
|
||||
[submodule "libs/curlpp"]
|
||||
path = libs/curlpp
|
||||
url = https://github.com/jpbarrette/curlpp.git
|
||||
|
||||
@@ -33,23 +33,17 @@ ENDIF()
|
||||
set(YAML_CPP_INSTALL OFF CACHE INTERNAL "")
|
||||
add_subdirectory(libs/yaml-cpp EXCLUDE_FROM_ALL)
|
||||
ENDIF()
|
||||
# FIND_PACKAGE(yaml-cpp REQUIRED)
|
||||
|
||||
|
||||
IF (NOT TARGET curlcpp)
|
||||
IF (NOT TARGET curlpp)
|
||||
set(BUILD_SHARED_LIBS FALSE )
|
||||
add_subdirectory(libs/curlcpp EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(libs/curlpp EXCLUDE_FROM_ALL)
|
||||
ENDIF()
|
||||
|
||||
IF(NOT TARGET crossguid)
|
||||
set(CROSSGUID_TESTS OFF CACHE INTERNAL "")
|
||||
add_subdirectory(libs/crossguid EXCLUDE_FROM_ALL)
|
||||
ENDIF()
|
||||
# IF (NOT TARGET rest-client)
|
||||
# set(BUILD_SHARED_LIBS OFF CACHE BOOL "disable testing")
|
||||
# add_subdirectory(libs/rest-client EXCLUDE_FROM_ALL)
|
||||
# ENDIF()
|
||||
|
||||
|
||||
|
||||
# build with CC=clang-15 CXX=clang++-15 cmake -D CMAKE_BUILD_TYPE=DEBUG ..
|
||||
|
||||
@@ -73,7 +67,6 @@ ENDIF()
|
||||
target_link_libraries(kubecontrol
|
||||
crossguid
|
||||
yaml-cpp
|
||||
curl
|
||||
curlpp
|
||||
loguru
|
||||
nlohmann_json
|
||||
|
||||
@@ -6,13 +6,17 @@
|
||||
#include <vector>
|
||||
#include <yaml-cpp/yaml.h>
|
||||
#include <fstream>
|
||||
#include <curlpp/cURLpp.hpp>
|
||||
#include <curlpp/Easy.hpp>
|
||||
#include <curlpp/Options.hpp>
|
||||
#include <kubecontrol/WriterMemoryClass.hpp>
|
||||
#include <loguru.hpp>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include <curlpp/cURLpp.hpp>
|
||||
#include <filesystem>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace kubecontrol
|
||||
{
|
||||
|
||||
Submodule libs/curlcpp deleted from b7df7787d1
1
libs/curlpp
Submodule
1
libs/curlpp
Submodule
Submodule libs/curlpp added at 1d8c7876cc
@@ -1,7 +1,5 @@
|
||||
#include <filesystem>
|
||||
#include <kubecontrol/KubePod.hpp>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace kubecontrol
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user