File tree Expand file tree Collapse file tree 2 files changed +27
-9
lines changed
include/rviz_visual_tools Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 2.8.6)
2
2
project (rviz_visual_tools)
3
3
4
- add_definitions (-std=c++11)
4
+ if (NOT MSVC )
5
+ add_compile_options (-std=c++11)
6
+ # Warnings
7
+ add_definitions (-W -Wall -Wextra
8
+ #-Wcast-qual
9
+ -Wwrite-strings -Wunreachable-code -Wpointer-arith
10
+ -Winit-self -Wredundant-decls
11
+ -Wno-unused-parameter -Wno-unused-function)
12
+ endif ()
5
13
6
14
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
7
15
8
- # Warnings
9
- add_definitions (-W -Wall -Wextra
10
- #-Wcast-qual
11
- -Wwrite-strings -Wunreachable-code -Wpointer-arith
12
- -Winit-self -Wredundant-decls
13
- -Wno-unused-parameter -Wno-unused-function)
14
-
15
16
find_package (catkin REQUIRED COMPONENTS
16
17
eigen_conversions
17
18
eigen_stl_containers
@@ -170,6 +171,10 @@ install(
170
171
${PROJECT_NAME} _remote_control
171
172
LIBRARY DESTINATION
172
173
${CATKIN_PACKAGE_LIB_DESTINATION}
174
+ ARCHIVE DESTINATION
175
+ ${CATKIN_PACKAGE_LIB_DESTINATION}
176
+ RUNTIME DESTINATION
177
+ ${CATKIN_GLOBAL_BIN_DESTINATION}
173
178
)
174
179
175
180
# Install header files
@@ -188,5 +193,6 @@ install(FILES
188
193
# Install executables
189
194
install (TARGETS ${PROJECT_NAME} _demo ${PROJECT_NAME} _imarker_simple_demo
190
195
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
196
+ ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
191
197
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
192
198
)
Original file line number Diff line number Diff line change 69
69
#include < rviz_visual_tools/deprecation.h>
70
70
#include < rviz_visual_tools/remote_control.h>
71
71
72
+ // Import/export for windows dll's and visibility for gcc shared libraries.
73
+
74
+ #ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries
75
+ #ifdef rviz_visual_tools_EXPORTS // we are building a shared lib/dll
76
+ #define RVIZ_VISUAL_TOOLS_DECL ROS_HELPER_EXPORT
77
+ #else // we are using shared lib/dll
78
+ #define RVIZ_VISUAL_TOOLS_DECL ROS_HELPER_IMPORT
79
+ #endif
80
+ #else // ros is being built around static libraries
81
+ #define RVIZ_VISUAL_TOOLS_DECL
82
+ #endif
83
+
72
84
namespace rviz_visual_tools
73
85
{
74
86
// Default constants
@@ -1079,7 +1091,7 @@ class RvizVisualTools
1079
1091
ros::NodeHandle nh_;
1080
1092
1081
1093
// Short name for this class
1082
- static const std::string name_;
1094
+ static RVIZ_VISUAL_TOOLS_DECL const std::string name_;
1083
1095
1084
1096
// Optional remote control
1085
1097
RemoteControlPtr remote_control_;
You can’t perform that action at this time.
0 commit comments