Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove libcurl_vendor #71

Closed
wants to merge 14 commits into from
79 changes: 0 additions & 79 deletions libcurl_vendor/CHANGELOG.rst

This file was deleted.

97 changes: 0 additions & 97 deletions libcurl_vendor/CMakeLists.txt

This file was deleted.

41 changes: 0 additions & 41 deletions libcurl_vendor/env_hook/libcurl_vendor_library_path.bat

This file was deleted.

1 change: 0 additions & 1 deletion libcurl_vendor/env_hook/libcurl_vendor_library_path.dsv.in

This file was deleted.

16 changes: 0 additions & 16 deletions libcurl_vendor/env_hook/libcurl_vendor_library_path.sh

This file was deleted.

55 changes: 0 additions & 55 deletions libcurl_vendor/libcurl_vendor-extras.cmake.in

This file was deleted.

31 changes: 0 additions & 31 deletions libcurl_vendor/package.xml

This file was deleted.

23 changes: 12 additions & 11 deletions resource_retriever/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.12)
project(resource_retriever)

# Default to C++14
Expand All @@ -10,33 +10,34 @@ if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic")
endif()

find_package(ament_cmake_ros REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(ament_index_cpp REQUIRED)
# TODO(wjwwood): remove libcurl_vendor and just use system curl when possible
find_package(libcurl_vendor REQUIRED)

include(find_libcurl-extras.cmake)

# TODO(wjwwood): split cpp and python apis into separate packages

add_library(${PROJECT_NAME} src/retriever.cpp)
add_library(${PROJECT_NAME} SHARED src/retriever.cpp)
target_include_directories(${PROJECT_NAME}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
ament_target_dependencies(${PROJECT_NAME}
ament_index_cpp
libcurl_vendor
target_link_libraries(${PROJECT_NAME} PRIVATE
ament_index_cpp::ament_index_cpp
CURL::libcurl
)
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
target_compile_definitions(${PROJECT_NAME} PRIVATE "RESOURCE_RETRIEVER_BUILDING_LIBRARY")

# specific order: dependents before dependencies
# Export old-style CMake variables
ament_export_include_directories(include)

# Export modern CMake targets
ament_export_targets(${PROJECT_NAME} HAS_LIBRARY_TARGET)

ament_export_dependencies(ament_index_cpp)
ament_export_dependencies(libcurl_vendor)

ament_python_install_package(${PROJECT_NAME}
PACKAGE_DIR src/${PROJECT_NAME})
Expand Down Expand Up @@ -96,4 +97,4 @@ install(
DESTINATION include
)

ament_package()
ament_package(CONFIG_EXTRAS find_libcurl-extras.cmake)
Loading