I have a package that I want to run on both a desktop/laptop (x64) and a Raspberry Pi (armhf). There's a node in my package that has to be run on the Raspberry Pi. It uses the wiringPi library. Obviously, doing `catkin_make` on something other than a RPi results in an error, so at the moment I just comment out those lines.
I'd like to find a way to only execute `target_link_libraries()` if the current computer/architecture/distro matches that of the RPi.
↧