]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Create a symbolic link to installed 'libSalomePyQt.so' instead of coping of it from...
authorakl <akl@opencascade.com>
Wed, 13 Mar 2013 13:17:14 +0000 (13:17 +0000)
committerakl <akl@opencascade.com>
Wed, 13 Mar 2013 13:17:14 +0000 (13:17 +0000)
src/SALOME_PYQT/SalomePyQt/CMakeLists.txt

index 112a17800ec13d9b24020599c68f3e5f0e39b379..34b6d31306592b9c35d7bebac5407485693f8f55 100755 (executable)
@@ -110,5 +110,7 @@ IF(WINDOWS)
     INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/${GUI_salomelib_LIBS}/SalomePyQt.dll DESTINATION ${GUI_salomelib_LIBS} RENAME SalomePyQt_d.pyd)
   ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
 ELSE(WINDOWS)
-  INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libSalomePyQt.so DESTINATION ${GUI_salomelib_LIBS} RENAME SalomePyQt.so)
+  INSTALL(CODE "EXECUTE_PROCESS(COMMAND ln -sf libSalomePyQt.so SalomePyQt.so
+                WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${GUI_salomelib_LIBS}
+                OUTPUT_VARIABLE ln_res)" )
 ENDIF(WINDOWS)