Skip to content

Commit

Permalink
parser_urdf.hh: remove visibility macro
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed May 13, 2020
1 parent 5fb487b commit 2f840ca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmake/SDFUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,20 +156,20 @@ macro (sdf_build_tests)
link_directories(${IGNITION-MATH_LIBRARY_DIRS})

if (USE_EXTERNAL_TINYXML)
target_link_libraries(${BINARY_NAME}
target_link_libraries(${BINARY_NAME} PRIVATE
${tinyxml_LIBRARIES})
endif()

if (UNIX)
target_link_libraries(${BINARY_NAME}
target_link_libraries(${BINARY_NAME} PRIVATE
libgtest.a
libgtest_main.a
${sdf_target}
pthread
${IGNITION-MATH_LIBRARIES}
)
elseif(WIN32)
target_link_libraries(${BINARY_NAME}
target_link_libraries(${BINARY_NAME} PRIVATE
gtest.lib
gtest_main.lib
${sdf_target}
Expand Down
13 changes: 12 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ set (gtest_sources
Mesh_TEST.cc
Model_TEST.cc
Noise_TEST.cc
parser_urdf_TEST.cc
Param_TEST.cc
parser_TEST.cc
Pbr_TEST.cc
Expand Down Expand Up @@ -163,6 +162,18 @@ if (NOT WIN32)
sdf_build_tests(Converter_TEST.cc)
endif()

if (NOT WIN32)
set(SDF_BUILD_TESTS_EXTRA_EXE_SRCS SDFExtension.cc parser_urdf.cc)
sdf_build_tests(parser_urdf_TEST.cc)
if (NOT USE_INTERNAL_URDF)
target_compile_options(UNIT_parser_urdf_TEST PRIVATE ${URDF_CFLAGS})
if (${CMAKE_VERSION} VERSION_GREATER 3.13)
target_link_options(UNIT_parser_urdf_TEST PRIVATE ${URDF_LDFLAGS})
endif()
target_link_libraries(UNIT_parser_urdf_TEST PRIVATE ${URDF_LIBRARIES})
endif()
endif()

sdf_add_library(${sdf_target} ${sources})
target_link_libraries(${sdf_target} PUBLIC ${IGNITION-MATH_LIBRARIES})

Expand Down
2 changes: 1 addition & 1 deletion src/parser_urdf.hh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace sdf
/// This is now deprecated for external usage and will be removed in the next
/// major version of libsdformat. Instead, consider using `sdf::readFile` or
/// `sdf::readString`, which automatically convert URDF to SDF.
class SDFORMAT_VISIBLE URDF2SDF
class URDF2SDF
{
/// \brief constructor
public: URDF2SDF();
Expand Down

0 comments on commit 2f840ca

Please sign in to comment.