Pick a different installation directory

From Wiki for iCub and Friends
Jump to navigation Jump to search

By default CMake pick /usr/local as installation directory.

This is appropriate for most users. You can modify this by changing the value of the variable CMAKE_INSTALLATION_PREFIX (run cmake again in this case).

In this case however you will need to export additional environment variables.

YARP

Suppose you select CMAKE_INSTALLATION_PREFIX=/home/user

Set YARP_DIR=/home/user/yarp

 export YARP_DIR=/home/user/yarp

iCub

Suppose you select CMAKE_INSTALLATION_PREFIX=/home/user Set ICUB_DIR=/home/user/iCub

 export ICUB_DIR=/home/user/iCub