/usr/share/rviz/cmake/rviz-extras.cmake is in librviz-dev 1.12.4+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Export the Qt version used by rviz.
set(rviz_QT_VERSION 5.7.1)
# Set the rviz_DEFAULT_PLUGIN_LIBRARIES variable.
# If the target exists, then this file was included during a cmake invocation
# that is shared with rviz's cmake, e.g. when building with catkin_make.
if(TARGET rviz_default_plugin)
# So just set it to the target name.
set(rviz_DEFAULT_PLUGIN_LIBRARIES rviz_default_plugin)
else()
# Otherwise rviz was built separately and this was sourced from a devel space or install space.
# If the location file doesn't exist at this point it is an error.
if(EXISTS "${rviz_DIR}/default_plugin_location.cmake")
# The file being included is generated by src/rviz/default_plugin/CMakeLists.txt
include("${rviz_DIR}/default_plugin_location.cmake")
set(rviz_DEFAULT_PLUGIN_LIBRARIES
"${rviz_DIR}/../../../lib/x86_64-linux-gnu/${rviz_DEFAULT_PLUGIN_FILE_NAME}")
else()
message(FATAL_ERROR "the default_plugin_location.cmake file was not found and is required")
endif()
endif()
|