jrl-umi3218 / mc_rtc

mc_rtc is an interface for simulated and real robotic systems suitable for real-time control
BSD 2-Clause "Simplified" License
122 stars 37 forks source link

[cmake] Add MC_RTC_LOADER_DEBUG_SUFFIX and MC_RTC_HONOR_INSTALL_PREFIX #356

Closed gergondet closed 1 year ago

gergondet commented 1 year ago

MC_RTC_LOADER_DEBUG_SUFFIX

Make the debug loader suffix settable

  1. As a build option for mc_rtc through the MC_RTC_LOADER_DEBUG_SUFFIX build option
  2. When using mc_rtc in an external package through the same variable (before find_packge(mc_rtc))

Also set the default suffix to be empty outside of the Windows platform

Closes #93

MC_RTC_HONOR_INSTALL_PREFIX

This CMake variable modifies the behavior of mc_rtc macros so that the install happens in the specified CMAKE_INSTALL_PREFIX rather than mc_rtc's install prefix.

This is especially useful to install mc_rtc component on a system where one has no write access to mc_rtc install location.

This is done passing -DMC_RTC_HONOR_INSTALL_PREFIX:BOOL=ON when building a package that uses mc_rtc