ADD: added the use of a local build curlpp library

This commit is contained in:
Henry Winkel
2023-08-09 08:43:00 +02:00
parent 726b09eb5f
commit 39f0f2b4eb
6 changed files with 13 additions and 18 deletions

View File

@@ -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