From 46941be59b63ecd13610d05c11c3343ab09b62aa Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 3 Sep 2020 10:02:26 +0200 Subject: [PATCH] For Powershell and Command Prompt, always use backslash for paths Fix https://github.com/robotology/robotology-superbuild/issues/463 --- CMakeLists.txt | 2 + .../addPathsToUserEnvVariables.ps1.in | 40 +++++++++---------- .../removePathsFromUserEnvVariables.ps1.in | 38 +++++++++--------- cmake/template/setup.bat.in | 34 ++++++++-------- 4 files changed, 58 insertions(+), 56 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bfeda17d..008a9397d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -260,6 +260,8 @@ include(ConfigureFileWithCMakeIf) configure_file_with_cmakeif(${CMAKE_CURRENT_SOURCE_DIR}/cmake/template/setup.sh.in ${YCM_EP_INSTALL_DIR}/share/${PROJECT_NAME}/setup.sh @ONLY) if(WIN32) + file(TO_NATIVE_PATH ${PROJECT_SOURCE_DIR} PROJECT_SOURCE_DIR_NATIVE_PATH) + file(TO_NATIVE_PATH ${YCM_EP_INSTALL_DIR} YCM_EP_INSTALL_DIR_NATIVE_PATH) configure_file_with_cmakeif(${CMAKE_CURRENT_SOURCE_DIR}/cmake/template/setup.bat.in ${YCM_EP_INSTALL_DIR}/share/${PROJECT_NAME}/setup.bat @ONLY) configure_file_with_cmakeif(${CMAKE_CURRENT_SOURCE_DIR}/cmake/template/addPathsToUserEnvVariables.ps1.in ${YCM_EP_INSTALL_DIR}/share/${PROJECT_NAME}/addPathsToUserEnvVariables.ps1 @ONLY) diff --git a/cmake/template/addPathsToUserEnvVariables.ps1.in b/cmake/template/addPathsToUserEnvVariables.ps1.in index d3a80f08a..aa26a6d64 100644 --- a/cmake/template/addPathsToUserEnvVariables.ps1.in +++ b/cmake/template/addPathsToUserEnvVariables.ps1.in @@ -23,50 +23,50 @@ function Add-ValueToUserEnvVariable ($EnvVariable, $Value, $Verbose=$TRUE) { [System.Environment]::SetEnvironmentVariable($EnvVariable, $newVar, 'User'); } -Set-ValueToUserEnvVariable ROBOTOLOGY_SUPERBUILD_SOURCE_DIR "@PROJECT_SOURCE_DIR@"; -$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX = "@YCM_EP_INSTALL_DIR@"; +Set-ValueToUserEnvVariable ROBOTOLOGY_SUPERBUILD_SOURCE_DIR "@PROJECT_SOURCE_DIR_NATIVE_PATH@"; +$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX = "@YCM_EP_INSTALL_DIR_NATIVE_PATH@"; Set-ValueToUserEnvVariable ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX; # Extend path -Add-ValueToUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/bin"; +Add-ValueToUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\bin"; # YARP related env variables (see http://www.yarp.it/yarp_data_dirs.html ) -Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/yarp"; -Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/iCub"; -Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/ICUBcontrib"; +Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\yarp"; +Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\iCub"; +Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\ICUBcontrib"; # Extend CMAKE_PREFIX_PATH (see https://cmake.org/cmake/help/v3.8/variable/CMAKE_PREFIX_PATH.html ) Add-ValueToUserEnvVariable CMAKE_PREFIX_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX; # Setup the path of blockfactory plugins -Add-ValueToUserEnvVariable BLOCKFACTORY_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/blockfactory"; +Add-ValueToUserEnvVariable BLOCKFACTORY_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\blockfactory"; @cmakeif ROBOTOLOGY_USES_GAZEBO # ROBOTOLOGY_USES_GAZEBO-specific lines -Add-ValueToUserEnvVariable GAZEBO_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib"; -Add-ValueToUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/gazebo/models" -Add-ValueToUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/iCub/robots" -Add-ValueToUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share" -Add-ValueToUserEnvVariable GAZEBO_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/gazebo/worlds" +Add-ValueToUserEnvVariable GAZEBO_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib"; +Add-ValueToUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\gazebo\models" +Add-ValueToUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\iCub\robots" +Add-ValueToUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share" +Add-ValueToUserEnvVariable GAZEBO_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\gazebo\worlds" @endcmakeif ROBOTOLOGY_USES_GAZEBO @cmakeif ROBOTOLOGY_ENABLE_ROBOT_TESTING # ROBOTOLOGY_ENABLE_ROBOT_TESTING-specific lines -Add-ValueToUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/rtf"; -Add-ValueToUserEnvVariable YARP_DATA_DIRS "@PROJECT_SOURCE_DIR@/robotology/icub-tests/suites"; -Add-ValueToUserEnvVariable BLOCKTEST_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/bin"; +Add-ValueToUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\rtf"; +Add-ValueToUserEnvVariable YARP_DATA_DIRS "@PROJECT_SOURCE_DIR_NATIVE_PATH@\robotology\icub-tests\suites"; +Add-ValueToUserEnvVariable BLOCKTEST_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\bin"; @endcmakeif ROBOTOLOGY_ENABLE_ROBOT_TESTING @cmakeif ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS # ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS-specific lines -Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/human-gazebo"; -Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/HumanDynamicsEstimation"; -Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/Wearables"; +Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\human-gazebo"; +Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\HumanDynamicsEstimation"; +Add-ValueToUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\Wearables"; @endcmakeif ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS @cmakeif ROBOTOLOGY_USES_PYTHON # Add the python bindings directory to the PYTHON_PATH -Add-ValueToUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/@PYTHON_VERSION_PATH@/dist-packages"; -Add-ValueToUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/@PYTHON_VERSION_PATH@/site-packages"; +Add-ValueToUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\@PYTHON_VERSION_PATH@\dist-packages"; +Add-ValueToUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\@PYTHON_VERSION_PATH@\site-packages"; @endcmakeif ROBOTOLOGY_USES_PYTHON diff --git a/cmake/template/removePathsFromUserEnvVariables.ps1.in b/cmake/template/removePathsFromUserEnvVariables.ps1.in index 3914213ae..ff0a4346d 100644 --- a/cmake/template/removePathsFromUserEnvVariables.ps1.in +++ b/cmake/template/removePathsFromUserEnvVariables.ps1.in @@ -27,49 +27,49 @@ function Remove-ValueFromUserEnvVariable ($EnvVariable, $Value, $Verbose=$TRUE) } Remove-UserEnvVariable ROBOTOLOGY_SUPERBUILD_SOURCE_DIR; -$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX = "@YCM_EP_INSTALL_DIR@"; +$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX = "@YCM_EP_INSTALL_DIR_NATIVE_PATH@"; Remove-UserEnvVariable ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX; # Cleanup path -Remove-ValueFromUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/bin"; +Remove-ValueFromUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\bin"; # Cleanup YARP related env variables (see http://www.yarp.it/yarp_data_dirs.html ) -Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/yarp"; -Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/iCub"; -Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/ICUBcontrib"; +Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\yarp"; +Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\iCub"; +Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\ICUBcontrib"; # Cleanup CMAKE_PREFIX_PATH (see https://cmake.org/cmake/help/v3.8/variable/CMAKE_PREFIX_PATH.html ) Remove-ValueFromUserEnvVariable CMAKE_PREFIX_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX; # Cleanup BLOCKFACTORY_PLUGIN_PATH -Remove-ValueFromUserEnvVariable BLOCKFACTORY_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/blockfactory"; +Remove-ValueFromUserEnvVariable BLOCKFACTORY_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\blockfactory"; @cmakeif ROBOTOLOGY_USES_GAZEBO # Cleanup ROBOTOLOGY_USES_GAZEBO-specific lines -Remove-ValueFromUserEnvVariable GAZEBO_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib"; -Remove-ValueFromUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/gazebo/models" -Remove-ValueFromUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/iCub/robots" -Remove-ValueFromUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share" -Remove-ValueFromUserEnvVariable GAZEBO_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/gazebo/worlds" +Remove-ValueFromUserEnvVariable GAZEBO_PLUGIN_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib"; +Remove-ValueFromUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\gazebo\models" +Remove-ValueFromUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\iCub\robots" +Remove-ValueFromUserEnvVariable GAZEBO_MODEL_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share" +Remove-ValueFromUserEnvVariable GAZEBO_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\gazebo\worlds" @endcmakeif ROBOTOLOGY_USES_GAZEBO @cmakeif ROBOTOLOGY_ENABLE_ROBOT_TESTING # Cleanup ROBOTOLOGY_ENABLE_ROBOT_TESTING-specific lines -Remove-ValueFromUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/rtf"; -Remove-ValueFromUserEnvVariable YARP_DATA_DIRS "@PROJECT_SOURCE_DIR@/robotology/icub-tests/suites"; -Remove-ValueFromUserEnvVariable BLOCKTEST_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/bin"; +Remove-ValueFromUserEnvVariable PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\rtf"; +Remove-ValueFromUserEnvVariable YARP_DATA_DIRS "@PROJECT_SOURCE_DIR_NATIVE_PATH@\robotology\icub-tests\suites"; +Remove-ValueFromUserEnvVariable BLOCKTEST_RESOURCE_PATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\bin"; @endcmakeif ROBOTOLOGY_ENABLE_ROBOT_TESTING @cmakeif ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS # Cleanup ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS-specific lines -Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/human-gazebo"; -Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/HumanDynamicsEstimation"; -Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/share/Wearables"; +Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\human-gazebo"; +Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\HumanDynamicsEstimation"; +Remove-ValueFromUserEnvVariable YARP_DATA_DIRS $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\share\Wearables"; @endcmakeif ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS @cmakeif ROBOTOLOGY_USES_PYTHON # Cleanup the python bindings directory from the PYTHON_PATH -Remove-ValueFromUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/@PYTHON_VERSION_PATH@/dist-packages"; -Remove-ValueFromUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"/lib/@PYTHON_VERSION_PATH@/site-packages"; +Remove-ValueFromUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\@PYTHON_VERSION_PATH@\dist-packages"; +Remove-ValueFromUserEnvVariable PYTHONPATH $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX"\lib\@PYTHON_VERSION_PATH@\site-packages"; @endcmakeif ROBOTOLOGY_USES_PYTHON diff --git a/cmake/template/setup.bat.in b/cmake/template/setup.bat.in index 759679216..c97645a3b 100644 --- a/cmake/template/setup.bat.in +++ b/cmake/template/setup.bat.in @@ -1,43 +1,43 @@ rem Automatically generated setup file for @PROJECT_NAME@ -set "ROBOTOLOGY_SUPERBUILD_SOURCE_DIR=@PROJECT_SOURCE_DIR@" -set "ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX=@YCM_EP_INSTALL_DIR@" +set "ROBOTOLOGY_SUPERBUILD_SOURCE_DIR=@PROJECT_SOURCE_DIR_NATIVE_PATH@" +set "ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX=@YCM_EP_INSTALL_DIR_NATIVE_PATH@" rem Extend PATH -set "PATH=%PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/bin" +set "PATH=%PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\bin" rem YARP related env variables (see http://www.yarp.it/yarp_data_dirs.html ) -set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/yarp;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/iCub;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/ICUBcontrib" +set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\yarp;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\iCub;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\ICUBcontrib" rem Extend CMAKE_PREFIX_PATH (see https://cmake.org/cmake/help/v3.8/variable/CMAKE_PREFIX_PATH.html ) set "CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%" rem Setup BlockFactory plugins path -set BLOCKFACTORY_PLUGIN_PATH=%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/lib/blockfactory +set BLOCKFACTORY_PLUGIN_PATH=%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\lib\blockfactory @cmakeif ROBOTOLOGY_USES_GAZEBO rem ROBOTOLOGY_USES_GAZEBO-specific lines -set "GAZEBO_PLUGIN_PATH=%GAZEBO_PLUGIN_PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/lib" -set "GAZEBO_MODEL_PATH=%GAZEBO_MODEL_PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/gazebo/models;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/iCub/robots;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share" -set "GAZEBO_RESOURCE_PATH=%GAZEBO_RESOURCE_PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/gazebo/worlds" +set "GAZEBO_PLUGIN_PATH=%GAZEBO_PLUGIN_PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\lib" +set "GAZEBO_MODEL_PATH=%GAZEBO_MODEL_PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\gazebo\models;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\iCub\robots;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share" +set "GAZEBO_RESOURCE_PATH=%GAZEBO_RESOURCE_PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\gazebo\worlds" @endcmakeif ROBOTOLOGY_USES_GAZEBO @cmakeif ROBOTOLOGY_ENABLE_ROBOT_TESTING -set "PATH=%PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/lib/rtf -set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;@PROJECT_SOURCE_DIR@/robotology/icub-tests/suites" -set "BLOCKTEST_RESOURCE_PATH"=%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/bin +set "PATH=%PATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\lib\rtf +set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;@PROJECT_SOURCE_DIR@\robotology\icub-tests\suites" +set "BLOCKTEST_RESOURCE_PATH"=%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\bin @endcmakeif ROBOTOLOGY_ENABLE_ROBOT_TESTING @cmakeif ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS rem ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS-specific lines -set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/human-gazebo" -set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/HumanDynamicsEstimation" -set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/Wearables" +set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\human-gazebo" +set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\HumanDynamicsEstimation" +set "YARP_DATA_DIRS=%YARP_DATA_DIRS%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\Wearables" @endcmakeif ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS @cmakeif ROBOTOLOGY_USES_PYTHON rem Add the python bindings directory to the PYTHON_PATH -set "PYTHONPATH=%PYTHONPATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/lib/@PYTHON_VERSION_PATH@/dist-packages" -set "PYTHONPATH=%PYTHONPATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/lib/@PYTHON_VERSION_PATH@/site-packages" +set "PYTHONPATH=%PYTHONPATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\lib\@PYTHON_VERSION_PATH@\dist-packages" +set "PYTHONPATH=%PYTHONPATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\lib\@PYTHON_VERSION_PATH@\site-packages" @endcmakeif ROBOTOLOGY_USES_PYTHON @cmakeif ROBOTOLOGY_USES_MATLAB rem Configure the Matlab -set "MATLABPATH=%MATLABPATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/mex;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/mex/+wbc/simulink;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/WBToolbox;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%/share/WBToolbox/images" +set "MATLABPATH=%MATLABPATH%;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\mex;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\mex\+wbc\simulink;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\WBToolbox;%ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX%\share\WBToolbox\images" @endcmakeif ROBOTOLOGY_USES_MATLAB