From e852926c028ac9cb59f81e685ccd221188983c4d Mon Sep 17 00:00:00 2001 From: Martin Idel Date: Tue, 27 Mar 2018 09:20:47 +0200 Subject: [PATCH] Make build export symbols --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 790f3ca..f53bfb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,10 @@ target_link_libraries(laser_geometry ${tf2_LIBRARIES} ) +# Causes the visibility macros to use dllexport rather than dllimport, +# which is appropriate when building the dll but not consuming it. +target_compile_definitions(laser_geometry PRIVATE "LASER_GEOMETRY_BUILDING_LIBRARY") + ament_export_include_directories(include) ament_export_interfaces(laser_geometry) ament_export_libraries(laser_geometry)