From d81bdcf7e739786ab7e959181e1b8e05605e823d Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 7 Feb 2015 14:59:40 +0900 Subject: [PATCH] create symlink for share directory for backword compatibility --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b966f63c9..322ad8990 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -567,5 +567,9 @@ if(need_catkin OR "${CATKIN_BUILD_BINARY_PACKAGE}") install(CODE "execute_process(COMMAND cmake -E create_symlink ../../bin/openhrp-model-loader openhrp-model-loader WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/openhrp3)") install(CODE "execute_process(COMMAND cmake -E create_symlink ../../bin/export-collada export-collada WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib/openhrp3)") install(CODE "execute_process(COMMAND cmake -E create_symlink ../../bin/export-collada export-collada WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/openhrp3)") + install(CODE " +execute_process(COMMAND cmake -E make_directory share WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/openhrp3) +execute_process(COMMAND cmake -E create_symlink ../../OpenHRP-3.1 share/OpenHRP-3.1 WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/openhrp3) +") endif()