diff --git a/CMakeLists.txt b/CMakeLists.txt index b2884f2..febfa56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ target_include_directories(${PROJECT_NAME} "$" ) -target_link_libraries(${PROJECT_NAME} PUBLIC Eigen3::Eigen GDAL::GDAL) +target_link_libraries(${PROJECT_NAME} PUBLIC Eigen3::Eigen PRIVATE GDAL::GDAL) ament_target_dependencies(${PROJECT_NAME} PUBLIC grid_map_core diff --git a/include/grid_map_geo/grid_map_geo.hpp b/include/grid_map_geo/grid_map_geo.hpp index 7d293b6..02d9122 100644 --- a/include/grid_map_geo/grid_map_geo.hpp +++ b/include/grid_map_geo/grid_map_geo.hpp @@ -39,20 +39,6 @@ #include #include -#if __APPLE__ -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#include -#endif - #include struct Location { ESPG espg{ESPG::WGS84}; diff --git a/src/grid_map_geo.cpp b/src/grid_map_geo.cpp index e5e0121..56f9a87 100644 --- a/src/grid_map_geo.cpp +++ b/src/grid_map_geo.cpp @@ -44,6 +44,20 @@ #include #include +#if __APPLE__ +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#include +#endif + GridMapGeo::GridMapGeo() {} GridMapGeo::~GridMapGeo() {}