Skip to content

Commit

Permalink
[TODO] last attempt to build on Win10 (#640 (comment))
Browse files Browse the repository at this point in the history
  • Loading branch information
KKSTB committed Aug 29, 2023
1 parent d176615 commit b657b3e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rviz_python_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,19 @@ list(APPEND shiboken_include_dirs
${tf2_msgs_INCLUDE_DIRS}
${pluginlib_INCLUDE_DIRS}
)
if(WIN32)
list(APPEND shiboken_include_dirs
${console_bridge_INCLUDE_DIRS}
)
endif()
message(STATUS "ROS inlcude dirs: ${shiboken_include_dirs}")
message(STATUS "QT5 inlcude dirs: ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS}")
list(APPEND shiboken_include_dirs
${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS}
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
cmake_path(SET shiboken_include_dirs NORMALIZE "${shiboken_include_dirs}")

add_library(rviz_python SHARED
src/visualizer_frame_py.cpp
Expand All @@ -72,7 +78,9 @@ add_library(rviz_python SHARED
target_include_directories(rviz_python PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_compile_options(rviz_python PUBLIC -Wl,--no-undefined)
if(NOT WIN32)
target_compile_options(rviz_python PUBLIC -Wl,--no-undefined)
endif()
ament_target_dependencies(rviz_python
rviz_common
Qt5
Expand Down

0 comments on commit b657b3e

Please sign in to comment.