]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Changed install paths for SALOME module
authordbv <dbv@opencascade.com>
Wed, 24 Feb 2016 11:39:07 +0000 (14:39 +0300)
committerdbv <dbv@opencascade.com>
Thu, 25 Feb 2016 06:10:50 +0000 (09:10 +0300)
34 files changed:
CMakeLists.txt
env_Salome.bat
env_linux.sh
msvc10_env.bat [deleted file]
src/Config/CMakeLists.txt
src/ConnectorPlugin/CMakeLists.txt
src/ConstructionPlugin/CMakeLists.txt
src/Events/CMakeLists.txt
src/ExchangePlugin/CMakeLists.txt
src/FeaturesPlugin/CMakeLists.txt
src/GeomAPI/CMakeLists.txt
src/GeomAlgoAPI/CMakeLists.txt
src/GeomAlgoImpl/CMakeLists.txt
src/GeomData/CMakeLists.txt
src/GeomDataAPI/CMakeLists.txt
src/GeomValidators/CMakeLists.txt
src/InitializationPlugin/CMakeLists.txt
src/Model/CMakeLists.txt
src/ModelAPI/CMakeLists.txt
src/ModuleBase/CMakeLists.txt
src/ParametersPlugin/CMakeLists.txt
src/PartSet/CMakeLists.txt
src/PartSetPlugin/CMakeLists.txt
src/PythonAPI/CMakeLists.txt
src/PythonAddons/CMakeLists.txt
src/PythonAddons/addons_Features.xml [deleted file]
src/PythonAddons/addons_Features.xml.in [new file with mode: 0644]
src/SHAPERGUI/CMakeLists.txt
src/SketchPlugin/CMakeLists.txt
src/SketchSolver/CMakeLists.txt
src/SketchSolver/PlaneGCSSolver/CMakeLists.txt
src/SketchSolver/SolveSpaceSolver/CMakeLists.txt
src/SketcherPrs/CMakeLists.txt
src/XGUI/CMakeLists.txt

index a3aaaf287dcfe02f3f205e2d5a35e01f4990dbb2..257524079d45446b6defc780b41337b081dd4aef 100644 (file)
@@ -15,10 +15,10 @@ INCLUDE(FindSUIT)
 
 IF(UNIX)
   IF(CMAKE_COMPILER_IS_GNUCC)
-    #C++11 is not supported on some platforms, disable it 
+    #C++11 is not supported on some platforms, disable it
     MESSAGE(STATUS "Setting -std=c++0x flag for the gcc...")
     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
-    
+
     #Supporting test coverage checks (gcov) in the DEBUG mode
     IF(USE_TEST_COVERAGE)
       INCLUDE(CodeCoverage)
@@ -26,18 +26,40 @@ IF(UNIX)
       SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
       SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
       SET(CMAKE_SHARED_LINKER_FLAGS "-lgcov")
-      
+
       SETUP_TARGET_FOR_COVERAGE(test_coverage  # Name for custom target.
                                 ctest          # Name of the test driver executable that runs the tests.
                                 coverage)      # Name of output directory.
     ENDIF(USE_TEST_COVERAGE)
-    
+
     #SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -E")
     MESSAGE(STATUS "gcc flags are: " ${CMAKE_CXX_FLAGS})
     MESSAGE(STATUS "linker flags are: " ${CMAKE_SHARED_LINKER_FLAGS})
   ENDIF(CMAKE_COMPILER_IS_GNUCC)
 ENDIF(UNIX)
 
+IF(${HAVE_SALOME})
+    SET(SHAPER_INSTALL_ADDONS bin/salome CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_BIN lib/salome CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_PLUGIN_FILES lib/salome CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_PYTHON_API bin/salome CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_PYTHON_FILES bin/salome CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_RESOURCES share/salome/resources/shaper CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_SWIG bin/salome CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_QM_RESOURCES share/salome/resources/shaper CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_XML_RESOURCES share/salome/resources/shaper CACHE INTERNAL "" FORCE)
+ELSE(${HAVE_SALOME})
+    SET(SHAPER_INSTALL_ADDONS addons CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_BIN bin CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_PLUGIN_FILES plugins CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_PYTHON_API PythonAPI CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_PYTHON_FILES plugins CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_RESOURCES resources CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_SWIG swig CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_QM_RESOURCES bin CACHE INTERNAL "" FORCE)
+    SET(SHAPER_INSTALL_XML_RESOURCES plugins CACHE INTERNAL "" FORCE)
+ENDIF(${HAVE_SALOME})
+
 #IF(CMAKE_BUILD_TYPE MATCHES Release)
 ADD_SUBDIRECTORY (doc)
 #ENDIF(CMAKE_BUILD_TYPE MATCHES Release)
index 2a7d7a437062fc4d15cda83f4823418e3d72218e..bcb80178b70cdfcd34614d00ca0f18f7cdf24564 100644 (file)
@@ -99,10 +99,10 @@ IF "%ARCH%" == "Win64" (
   )
 )
 
-@SET SHAPER_CONFIG_FILE=%ROOT_DIR%\install\plugins
+@SET SHAPER_CONFIG_FILE=%ROOT_DIR%\install\share\salome\resources\shaper
 @SET SHAPER_ROOT_DIR=%ROOT_DIR%\install
-@SET PATH=%SHAPER_ROOT_DIR%\swig;%SHAPER_ROOT_DIR%\plugins;%SHAPER_ROOT_DIR%\bin;%PATH%
-@SET PYTHONPATH=%SHAPER_ROOT_DIR%\swig;%SHAPER_ROOT_DIR%\plugins;%SHAPER_ROOT_DIR%\addons;%SHAPER_ROOT_DIR%\pythonAPI;%PYTHONPATH%
+@SET PATH=%SHAPER_ROOT_DIR%\bin\salome;%SHAPER_ROOT_DIR%\lib\salome;%PATH%
+@SET PYTHONPATH=%SHAPER_ROOT_DIR%\bin\salome;%SHAPER_ROOT_DIR%\lib\salome;%PYTHONPATH%
 
-@SET LightAppConfig=%%SHAPER_ROOT_DIR%\share\salome\resources\shaper;%GUI_ROOT_DIR%\share\salome\resources\gui
-@SET SHAPERResources=%SHAPER_ROOT_DIR%\resources
+@SET LightAppConfig=%SHAPER_ROOT_DIR%\share\salome\resources\shaper;%GUI_ROOT_DIR%\share\salome\resources\gui
+@SET SHAPERResources=%SHAPER_ROOT_DIR%\share\salome\resources\shaper
index 0304d3338af41a5d1f2fed54e21775d3c774d5ac..7ef0107d71042fbc8b7f73e9738d8370ab0b11bb 100644 (file)
@@ -52,8 +52,8 @@ export PATH=${CASROOT}:${PATH}
 ##
 
 #------ SHAPER ------
-export PATH=${SHAPER_ROOT_DIR}/bin:${SHAPER_ROOT_DIR}/plugins:${PATH}
-export PYTHONPATH=${SHAPER_ROOT_DIR}/swig:${SHAPER_ROOT_DIR}/plugins:${SHAPER_ROOT_DIR}/addons:${SHAPER_ROOT_DIR}/PythonAPI:${PYTHONPATH}
-export LD_LIBRARY_PATH=${SHAPER_ROOT_DIR}/bin:${SHAPER_ROOT_DIR}/swig:${SHAPER_ROOT_DIR}/plugins:${LD_LIBRARY_PATH}
-export SHAPER_CONFIG_FILE=${SHAPER_ROOT_DIR}/plugins
-export SHAPERResources=${SHAPER_ROOT_DIR}/resources
+export PATH=${SHAPER_ROOT_DIR}/bin/salome:${SHAPER_ROOT_DIR}/lib/salome:${PATH}
+export PYTHONPATH=${SHAPER_ROOT_DIR}//bin/salome:${SHAPER_ROOT_DIR}/lib/salome:${PYTHONPATH}
+export LD_LIBRARY_PATH=${SHAPER_ROOT_DIR}/bin/salome:${SHAPER_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH}
+export SHAPER_CONFIG_FILE=${SHAPER_ROOT_DIR}/share/salome/resources/shaper
+export SHAPERResources=${SHAPER_ROOT_DIR}/share/salome/resources/shaper
diff --git a/msvc10_env.bat b/msvc10_env.bat
deleted file mode 100644 (file)
index 8d8aa6e..0000000
+++ /dev/null
@@ -1,195 +0,0 @@
-@echo off
-
-@REM Load local settings from file localenv.bat that should be located in the root directory
-if "%ROOT_DIR%" == "" (
-  set ROOT_DIR=%~dp0..
-)
-if exist "%ROOT_DIR%\localenv.bat" (
-  echo Setting local environment from %ROOT_DIR%\localenv.bat
-  call "%ROOT_DIR%\localenv.bat"
-) else (
-  echo Warning: file %ROOT_DIR%\localenv.bat does not exist; using default environment
-)
-
-rem --------------- Configuration --------------
-
-rem --------------- Products path --------------
-if "%PDIR%" == "" (
-  set PDIR=%ROOT_DIR%\products
-)
-
-rem --------------- cmake 2.8.7 --------------
-if "%CMAKEDIR%" == "" (
-  set CMAKEDIR=%PDIR%\cmake-2.8.12.2
-)
-set PATH=%CMAKEDIR%\bin;%PATH%
-
-@REM -------------------------
-@REM CASCADE
-@SET CAS_ROOT_DIR=%PDIR%\OCCT-6.9.1
-@SET CASROOT=%CAS_ROOT_DIR%
-@REM -------------------------
-
-@REM -------------------------
-@REM CASCADE
-@SET PATH=%CASROOT%;%CASROOT%\win32\bin%OCC_LIB_PREFIX%;%PATH%
-@SET LIB=%CASROOT%\win32\lib%OCC_LIB_PREFIX%;%LIB%
-@set CSF_MDTVFontDirectory=%CASROOT%\src\FontMFT
-@set CSF_LANGUAGE=us
-@set MMGT_CLEAR=1
-@set CSF_EXCEPTION_PROMPT=1
-@set CSF_SHMessage=%CASROOT%\src\SHMessage
-@set CSF_MDTVTexturesDirectory=%CASROOT%\src\Textures
-@set CSF_XSMessage=%CASROOT%\src\XSMessage
-@set CSF_StandardDefaults=%CASROOT%\src\StdResource
-@set CSF_PluginDefaults=%CASROOT%\src\StdResource
-@set CSF_XCAFDefaults=%CASROOT%\src\StdResource
-@set CSF_StandardLiteDefaults=%CASROOT%\src\StdResource
-@set CSF_UnitsLexicon=%CASROOT%\src\UnitsAPI\Lexi_Expr.dat
-@set CSF_UnitsDefinition=%CASROOT%\src\UnitsAPI\Units.dat
-@set CSF_IGESDefaults=%CASROOT%\src\XSTEPResource
-@set CSF_STEPDefaults=%CASROOT%\src\XSTEPResource
-@set CSF_XmlOcafResource=%CASROOT%\src\XmlOcafResource
-@REM -------------------------
-
-
-@REM -------------------------
-@REM FREEIMAGE (Used by OCCT and Graphviz)
-@SET PATH=%PDIR%\freeimage-3.16.0\dll;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM FTGL (Used by OCCT)
-@SET PATH=%PDIR%\ftgl-2.1.3\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM FREETYPE (Used by OCCT)
-@SET FREETYPE_ROOT_DIR=%PDIR%\freetype-2.4.11
-@SET PATH=%FREETYPE_ROOT_DIR%\bin;%PATH%
-@REM -------------------------
-@REM -------------------------
-
-@REM -------------------------
-@REM GL2PS (Used by OCCT AND PARAVIEW)
-@SET PATH=%PDIR%\gl2ps-1.3.8\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM TBB (Used by OCCT)
-@SET PATH=%PDIR%\tbb-4.2.4\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM QT
-@SET QTDIR=%PDIR%\qt-4.8.4
-@ECHO -- Creating qt.conf... in %QTDIR%
-@ECHO [Paths] > %QTDIR%/bin/qt.conf
-@ECHO Prefix = %QTDIR:\=/% >> %QTDIR%/bin/qt.conf
-@SET PATH=%QTDIR%\bin;%PATH%
-
-@REM -------------------------
-
-@REM -------------------------
-@REM PYTHON
-@SET PYTHONHOME=%PDIR%\python-2.7.10
-@SET PYTHON_INCLUDE=%PYTHONHOME%\include
-@SET PATH=%PYTHONHOME%;%PYTHONHOME%\libs;%PATH%
-@SET PYTHONPATH=%PYTHONHOME%\Lib;%PYTHONPATH%
-@SET PYTHONPATH=%PYTHONHOME%\DLLs;%PYTHONPATH%
-@SET PYTHON_VERSION=2.7
-@REM -------------------------
-
-@REM -------------------------
-@REM ZLIB (for LIBXML2)
-@SET PATH=%PDIR%\zlib-1.2.5\dll;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM LIBXML2
-@SET LIBXML2_ROOT_DIR=%PDIR%\libxml2-2.9.0
-@SET PATH=%LIBXML2_ROOT_DIR%\lib;%PATH%
-@SET PATH=%LIBXML2_ROOT_DIR%\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM SWIG
-@SET PATH=%PDIR%\swig-2.0.9\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@SET SOLVESPACE_ROOT_DIR=%PDIR%\solvespace-2.1
-@SET PATH=%SOLVESPACE_ROOT_DIR%\lib;%PATH%
-@SET _NO_DEBUG_HEAP=1
-@REM -------------------------
-
-@REM -------------------------
-@SET PLANEGCS_ROOT_DIR=%PDIR%\planegcs-0.16
-@SET PATH=%PLANEGCS_ROOT_DIR%\lib;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@SET EIGEN_ROOT_DIR=%PDIR%\eigen-3.2.7
-@REM -------------------------
-
-@REM -------------------------
-@IF "%SALOME_ROOT_DIR%" == "" (
-@SET BOOST_ROOT_DIR=%PDIR%\boost-1.52.0
-) ELSE (
-@SET BOOST_ROOT_DIR=%SALOME_ROOT_DIR%\PRODUCTS%OCC_LIB_PREFIX%\boost-1.52.0
-)
-@REM -------------------------
-
-@REM -------------------------
-@REM PTHREAD
-@SET PATH=%PDIR%\pthreads-2.9.1\lib;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM DOXYGEN
-@SET DOXYGEN_ROOT_DIR=%PDIR%\doxygen-1.8.3.1
-@SET PATH=%DOXYGEN_ROOT_DIR%\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM GRAPHVIZ
-@SET GRAPHVIZ_ROOT_DIR=%PDIR%\graphviz-2.38.0
-@SET GRAPHVIZHOME=%GRAPHVIZ_ROOT_DIR%
-@SET PATH=%GRAPHVIZ_ROOT_DIR%\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM PNG library (Used by GRAPHVIZ)
-@SET PATH=%PDIR%\libpng-1.5.10\bin;%PATH%
-@REM -------------------------
-
-
-@REM -------------------------
-@REM SUIT
-@SET SUIT_DIR=%PDIR%\suit
-@SET PATH=%SUIT_DIR%\bin;%PATH%
-@REM -------------------------
-
-@REM -------------------------
-@REM OPENPARTS
-@SET SHAPER_ROOT_DIR=%ROOT_DIR%\install
-@SET SHAPER_CONFIG_FILE=%SHAPER_ROOT_DIR%\plugins
-@SET PATH=%SHAPER_ROOT_DIR%\swig;%SHAPER_ROOT_DIR%\plugins;%SHAPER_ROOT_DIR%\bin;%PATH%
-@SET PYTHONPATH=%SHAPER_ROOT_DIR%\swig;%SHAPER_ROOT_DIR%\plugins;%SHAPER_ROOT_DIR%\addons;%SHAPER_ROOT_DIR%\pythonAPI;%PYTHONPATH%
-@SET SHAPERResources=%SHAPER_ROOT_DIR%\resources
-
-rem -------- Visual Studio --------------------
-rem Detect Visual Studio (either commercial or Express edition)
-if "%VS100COMNTOOLS%" == "" (
-    echo Could not find MS Visual Studio: variable VS100COMNTOOLS is not defined!
-    exit 1
-) else if exist "%VS100COMNTOOLS%\..\IDE\devenv.exe" (
-    set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\devenv.exe"
-) else if exist "%VS100COMNTOOLS%\..\IDE\VCExpress.exe" (
-    set MSVC_EXE="%VS100COMNTOOLS%\..\IDE\VCExpress.exe"
-) else (
-    echo "Could not find MS Visual Studio in %VS100COMNTOOLS%\..\IDE"
-    echo Check environment variable VS100COMNTOOLS!
-    exit 1
-)
-call "%VS100COMNTOOLS%..\Tools\vsvars32.bat"
index 75cb0970339c0fb765869c226ed77c7967a96ecd..8952f175698a41860d1d7dafc09eeaeda13020fc 100644 (file)
@@ -82,9 +82,9 @@ ENDFOREACH()
 # check default solver in the list of solvers
 LIST(FIND SOLVERS ${DEFAULT_SOLVER} INDEX)
 IF(${INDEX} GREATER -1)
-  MESSAGE(STATUS "Default solver: ${DEFAULT_SOLVER}") 
+  MESSAGE(STATUS "Default solver: ${DEFAULT_SOLVER}")
 ELSE()
-  MESSAGE(FATAL_ERROR "Default solver: ${DEFAULT_SOLVER} is switched off.\nUnset NO_${DEFAULT_SOLVER} variable or define another default solver DEFAULT_SOLVER=<SOLVER> from the list: ${SOLVERS}.") 
+  MESSAGE(FATAL_ERROR "Default solver: ${DEFAULT_SOLVER} is switched off.\nUnset NO_${DEFAULT_SOLVER} variable or define another default solver DEFAULT_SOLVER=<SOLVER> from the list: ${SOLVERS}.")
 ENDIF()
 
 # prepare variables for configuration
@@ -102,5 +102,5 @@ CONFIGURE_FILE(
   "${CMAKE_CURRENT_BINARY_DIR}/plugins.xml"
   )
 
-INSTALL(TARGETS Config DESTINATION bin)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+INSTALL(TARGETS Config DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
index 9aafdea5acf5290c70f4fa8a2e0b9ffedd16ef2b..cc988831e03512becd9304a4647cbe700dbc5945 100644 (file)
@@ -5,10 +5,11 @@ SET(PYTHON_FILES
     ConnectorPlugin_ExportFeature.py
 )
 
-SET(XML_RESSOURCES
+SET(XML_RESOURCES
   plugin-Connector.xml
 )
 
-ADD_CUSTOM_TARGET(ConnectorPlugin SOURCES ${PYTHON_FILES} ${XML_RESSOURCES})
+ADD_CUSTOM_TARGET(ConnectorPlugin SOURCES ${PYTHON_FILES} ${XML_RESOURCES})
 
-INSTALL(FILES ${PYTHON_FILES} ${XML_RESSOURCES} DESTINATION plugins)
+INSTALL(FILES ${PYTHON_FILES} DESTINATION ${SHAPER_INSTALL_PYTHON_FILES})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
index 8633f1f7bdf1d5adb3a8322a11e002e2ce006007..2d379a45d6f92a6eee96719d08760d8b5054bcbb 100644 (file)
@@ -27,8 +27,8 @@ SET(XML_RESOURCES
 
 SET(PROJECT_LIBRARIES
     Config
-    ModelAPI 
-    GeomAPI 
+    ModelAPI
+    GeomAPI
     GeomAlgoAPI
 )
 
@@ -36,8 +36,8 @@ ADD_DEFINITIONS(-DCONSTRUCTIONPLUGIN_EXPORTS)
 ADD_LIBRARY(ConstructionPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
 TARGET_LINK_LIBRARIES(ConstructionPlugin ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS ConstructionPlugin DESTINATION plugins)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+INSTALL(TARGETS ConstructionPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 
 INCLUDE_DIRECTORIES(
   ../Config
index c9cb2beb04dccbab7578658a0169b8973edc908b..5c5d99a083ae2547cbb8e5a31df90b34d050cc70 100644 (file)
@@ -8,7 +8,7 @@ INCLUDE(${SWIG_USE_FILE})
 SET(PROJECT_HEADERS
     Events.h
     Events_Message.h
-    Events_MessageGroup.h 
+    Events_MessageGroup.h
     Events_Listener.h
     Events_Loop.h
     Events_Error.h
@@ -53,6 +53,6 @@ IF(WIN32)
   SET_TARGET_PROPERTIES(_EventsAPI PROPERTIES DEBUG_OUTPUT_NAME _EventsAPI_d)
 ENDIF(WIN32)
 
-INSTALL(TARGETS Events DESTINATION bin)
-INSTALL(TARGETS _EventsAPI DESTINATION swig)
-INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
+INSTALL(TARGETS Events DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(TARGETS _EventsAPI DESTINATION ${SHAPER_INSTALL_SWIG})
+INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
index 99041c9611a484dd23b78bd1734e1fb5272b7b4a..73d251f1038b43b3812004e717c082c49f0ad269 100644 (file)
@@ -44,8 +44,8 @@ ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RE
 
 TARGET_LINK_LIBRARIES(ExchangePlugin ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS ExchangePlugin DESTINATION plugins)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+INSTALL(TARGETS ExchangePlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 
 ADD_UNIT_TESTS(TestImport.py TestExport.py)
 
index bdce2cafb82a573809969ea2ed3b1716bfb53f1f..8dea5b736abaaa879b8d6bbe78974a0e2764fe50 100644 (file)
@@ -89,8 +89,8 @@ ADD_DEFINITIONS(-DFEATURESPLUGIN_EXPORTS)
 ADD_LIBRARY(FeaturesPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
 TARGET_LINK_LIBRARIES(FeaturesPlugin ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS FeaturesPlugin DESTINATION plugins)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+INSTALL(TARGETS FeaturesPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 
 ADD_UNIT_TESTS(TestExtrusion.py
                TestExtrusionSketch.py
index b258cb54a3904a30162f6c03a0f1aaabfa221ac4..6c1307203a5cbbdafa21c5c7707531a4c60fa912 100644 (file)
@@ -69,8 +69,8 @@ SET(PROJECT_SOURCES
 )
 
 SET(PROJECT_LIBRARIES
-    ${CAS_KERNEL} 
-    ${CAS_MODELER} 
+    ${CAS_KERNEL}
+    ${CAS_MODELER}
     ${CAS_VIEWER}
     ${CAS_SHAPE}
     ${CAS_TKTopAlgo}
@@ -106,6 +106,6 @@ IF(WIN32)
   SET_TARGET_PROPERTIES(_GeomAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAPI_d)
 ENDIF(WIN32)
 
-INSTALL(TARGETS _GeomAPI DESTINATION swig)
-INSTALL(TARGETS GeomAPI DESTINATION bin)
-INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
+INSTALL(TARGETS _GeomAPI DESTINATION ${SHAPER_INSTALL_SWIG})
+INSTALL(TARGETS GeomAPI DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
index 5ad6028f1c56d174033996174186e4431e37d967..1b3390b16362925c6e56633bc0a0f90b5fa0113f 100644 (file)
@@ -124,6 +124,6 @@ IF(WIN32)
   SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d)
 ENDIF(WIN32)
 
-INSTALL(TARGETS _GeomAlgoAPI DESTINATION swig)
-INSTALL(TARGETS GeomAlgoAPI DESTINATION bin)
-INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
+INSTALL(TARGETS _GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_SWIG})
+INSTALL(TARGETS GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
index 02de4b1a17f45ea7f19dd55899f694fdb751aa76..b38a0553964aaf4512461af4cd593c93eee5b969 100644 (file)
@@ -27,4 +27,4 @@ INCLUDE_DIRECTORIES(
 
 TARGET_LINK_LIBRARIES(GeomAlgoImpl ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS GeomAlgoImpl DESTINATION bin)
+INSTALL(TARGETS GeomAlgoImpl DESTINATION ${SHAPER_INSTALL_BIN})
index 16a1329d7382314c2ada67edeff0597589ef648c..7aedcdb7d79bffb6a55d283e41eefb2437b44ff5 100644 (file)
@@ -17,10 +17,10 @@ SET(PROJECT_SOURCES
 
 SET(PROJECT_LIBRARIES
     GeomDataAPI
-    ModelAPI 
-    GeomAPI 
+    ModelAPI
+    GeomAPI
     Events
-    ${CAS_OCAF} 
+    ${CAS_OCAF}
     ${CAS_SHAPE}
 )
 
@@ -38,4 +38,4 @@ INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
 )
 
-INSTALL(TARGETS GeomData DESTINATION bin)
+INSTALL(TARGETS GeomData DESTINATION ${SHAPER_INSTALL_BIN})
index bef8c896d64b2acd5a537ee9545b555937b59cdb..2d4534ea61cf1049b17c2d88eca67f14fe43f2b4 100644 (file)
@@ -53,8 +53,8 @@ IF(WIN32)
   SET_TARGET_PROPERTIES(_GeomDataAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomDataAPI_d)
 ENDIF(WIN32)
 
-INSTALL(TARGETS GeomDataAPI DESTINATION bin)
-INSTALL(TARGETS _GeomDataAPI DESTINATION swig)
-INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
+INSTALL(TARGETS GeomDataAPI DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(TARGETS _GeomDataAPI DESTINATION ${SHAPER_INSTALL_SWIG})
+INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
 
 ADD_UNIT_TESTS(TestConstants.py)
index b18ae35aad8b9aa746ff6259000e04cd8196f89d..af20eedc4c250afe68b591f44450f8404d260664 100644 (file)
@@ -57,4 +57,4 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
 )
 
-INSTALL(TARGETS GeomValidators DESTINATION plugins)
+INSTALL(TARGETS GeomValidators DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
index 9f18bb6613661e6138dfdc92ad6c6d863b95b60d..7967fcc67de882c144aab927d4e171bf432f7a46 100644 (file)
@@ -5,14 +5,14 @@ INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
                     ${PROJECT_SOURCE_DIR}/src/Config
                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
-) 
+)
 
 SET(PROJECT_HEADERS
     InitializationPlugin.h
     InitializationPlugin_Plugin.h
     #InitializationPlugin_OriginPlanesFeature.h
 )
+
 SET(PROJECT_SOURCES
     InitializationPlugin_Plugin.cpp
     #InitializationPlugin_OriginPlanesFeature.cpp
@@ -32,5 +32,5 @@ ADD_LIBRARY(InitializationPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${
 
 TARGET_LINK_LIBRARIES(InitializationPlugin ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS InitializationPlugin DESTINATION plugins)
+INSTALL(TARGETS InitializationPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
 #INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
index 2ebf396eacf2fe36d2bd1ae1f6d688be1d01e6af..11d98c4271efc7bc03f1aad1af71450751bfd98a 100644 (file)
@@ -72,9 +72,9 @@ SET(PROJECT_SOURCES
 )
 
 SET(PROJECT_LIBRARIES
-    ModelAPI 
-    Events 
-    Config 
+    ModelAPI
+    Events
+    Config
     GeomData
     GeomAPI
     GeomAlgoAPI
@@ -101,4 +101,4 @@ INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
 )
 
-INSTALL(TARGETS Model DESTINATION bin)
+INSTALL(TARGETS Model DESTINATION ${SHAPER_INSTALL_BIN})
index 696f724c2a829081ada55e42218fb5bf1f148d65..fb4db8b550eb191cf4f1048d788f4bba1e1af3e9 100644 (file)
@@ -90,7 +90,7 @@ ADD_LIBRARY(ModelAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
 SET_TARGET_PROPERTIES(ModelAPI PROPERTIES LINKER_LANGUAGE CXX)
 TARGET_LINK_LIBRARIES(ModelAPI ${PROJECT_LIBRARIES})
 
-INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Config 
+INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Config
                     ${PROJECT_SOURCE_DIR}/src/Events
                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
                     ${PROJECT_SOURCE_DIR}/src/GeomAlgoAPI
@@ -120,9 +120,9 @@ IF(WIN32)
   SET_TARGET_PROPERTIES(_ModelAPI PROPERTIES DEBUG_OUTPUT_NAME _ModelAPI_d)
 ENDIF(WIN32)
 
-INSTALL(TARGETS _ModelAPI DESTINATION swig)
-INSTALL(TARGETS ModelAPI DESTINATION bin)
-INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
+INSTALL(TARGETS _ModelAPI DESTINATION ${SHAPER_INSTALL_SWIG})
+INSTALL(TARGETS ModelAPI DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})
 
 ADD_UNIT_TESTS(TestConstants.py
                TestUndoRedo.py
index d16badfc742576426ab0ed0622a345c9eca57a95..23c589611d9ee4ac67092d397055fd2bcbabb060 100644 (file)
@@ -24,11 +24,11 @@ SET(PROJECT_HEADERS
   ModuleBase_ModelWidget.h
   ModuleBase_Operation.h
   ModuleBase_OperationAction.h
-  ModuleBase_OperationDescription.h    
+  ModuleBase_OperationDescription.h
   ModuleBase_OperationFeature.h
   ModuleBase_PageBase.h
   ModuleBase_PageGroupBox.h
-  ModuleBase_PageWidget.h      
+  ModuleBase_PageWidget.h
   ModuleBase_PagedContainer.h
   ModuleBase_ParamIntSpinBox.h
   ModuleBase_ParamSpinBox.h
@@ -80,7 +80,7 @@ SET(PROJECT_SOURCES
   ModuleBase_ModelWidget.cpp
   ModuleBase_Operation.cpp
   ModuleBase_OperationAction.cpp
-  ModuleBase_OperationDescription.cpp  
+  ModuleBase_OperationDescription.cpp
   ModuleBase_OperationFeature.cpp
   ModuleBase_PageBase.cpp
   ModuleBase_PageGroupBox.cpp
@@ -133,7 +133,7 @@ SET(PROJECT_LIBRARIES
        ${ViewerData}
 )
 
-SET(PROJECT_AUTOMOC 
+SET(PROJECT_AUTOMOC
     ${CMAKE_CURRENT_BINARY_DIR}/ModuleBase_automoc.cpp
 )
 
@@ -158,5 +158,4 @@ ADD_DEFINITIONS(-DMODULEBASE_EXPORTS ${CAS_DEFINITIONS})
 ADD_LIBRARY(ModuleBase SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
 TARGET_LINK_LIBRARIES(ModuleBase GeomAPI ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS ModuleBase DESTINATION bin)
-
+INSTALL(TARGETS ModuleBase DESTINATION ${SHAPER_INSTALL_BIN})
index 39dd4aca99ca4d00e9d53de4370109dc0566d4a7..b2683044d8ae39328827252d39edda52e6ff49aa 100644 (file)
@@ -10,7 +10,7 @@ SET(PROJECT_HEADERS
     ParametersPlugin_Validators.h
     ParametersPlugin_EvalListener.h
 )
+
 SET(PROJECT_SOURCES
     ParametersPlugin_Plugin.cpp
     ParametersPlugin_Parameter.cpp
@@ -30,7 +30,7 @@ INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
                     ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
                     ${SUIT_INCLUDE}
                     ${PYTHON_INCLUDE_DIR}
-) 
+)
 
 MESSAGE(STATUS "PYTHON_LIBRARIES (ParametersPlugin): ${PYTHON_LIBRARIES}")
 
@@ -47,8 +47,8 @@ ADD_LIBRARY(ParametersPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_
 
 TARGET_LINK_LIBRARIES(ParametersPlugin ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS ParametersPlugin DESTINATION plugins)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+INSTALL(TARGETS ParametersPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 
 ADD_UNIT_TESTS(TestParameterCreation.py
                TestParameterRename.py
index b8c6121cdaeba1b476e87cd7667bd057840560e2..2c0d2ed8f28123cb759f98f6804dd0ec63c4761a 100644 (file)
@@ -57,7 +57,7 @@ SET(PROJECT_SOURCES
        PartSet_IconFactory.cpp
 )
 
-SET(PROJECT_RESOURCES 
+SET(PROJECT_RESOURCES
     PartSet_icons.qrc
 )
 
@@ -76,13 +76,13 @@ SET(PROJECT_LIBRARIES
     ${CAS_SHAPE}
 )
 
-SET(PROJECT_AUTOMOC 
+SET(PROJECT_AUTOMOC
     ${CMAKE_CURRENT_BINARY_DIR}/PartSet_automoc.cpp
 )
 
 QT4_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
 #QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
-#QT4_CREATE_TRANSLATION(QM_RESOURCES 
+#QT4_CREATE_TRANSLATION(QM_RESOURCES
 #                                         ${PROJECT_SOURCES}
 #                                         ${TEXT_RESOURCES}
 #                                         OPTIONS -extensions cpp -no-recursive
@@ -115,11 +115,11 @@ IF(NOT ${HAVE_SALOME})
 ENDIF(NOT ${HAVE_SALOME})
 
 ADD_DEFINITIONS(-DPARTSET_EXPORTS ${CAS_DEFINITIONS})
-ADD_LIBRARY(PartSet SHARED 
-       ${PROJECT_SOURCES} 
-       ${PROJECT_HEADERS} 
-       ${PROJECT_COMPILED_RESOURCES} 
-#      ${TEXT_RESOURCES} 
+ADD_LIBRARY(PartSet SHARED
+       ${PROJECT_SOURCES}
+       ${PROJECT_HEADERS}
+       ${PROJECT_COMPILED_RESOURCES}
+#      ${TEXT_RESOURCES}
 #      ${QM_RESOURCES}
 )
 
@@ -128,6 +128,5 @@ TARGET_LINK_LIBRARIES(PartSet ${PROJECT_LIBRARIES} XGUI ModelAPI GeomAlgoAPI)
 
 ADD_DEPENDENCIES(PartSet ModuleBase)
 
-INSTALL(TARGETS PartSet DESTINATION bin)
+INSTALL(TARGETS PartSet DESTINATION ${SHAPER_INSTALL_BIN})
 #INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)
-
index cd3dcad9478402b5244761c09e2cf7d8ccd4ab26..c644b807b8a93c3a0d48cdf810fcf8982eb1962a 100644 (file)
@@ -31,5 +31,5 @@ INCLUDE_DIRECTORIES(
   ../GeomAPI
 )
 
-INSTALL(TARGETS PartSetPlugin DESTINATION plugins)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+INSTALL(TARGETS PartSetPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
index 33337d6e39a45526000e90771316e19874717e6a..909e9bdfb176a8d5b00bf0a0a8c78f8bd157a2b2 100644 (file)
@@ -3,8 +3,8 @@
 
 SET(CMAKE_AUTOMOC ON)
 
-INSTALL(DIRECTORY extension geom model examples DESTINATION PythonAPI)
-INSTALL(FILES shaper.py DESTINATION PythonAPI)
+INSTALL(DIRECTORY extension geom model examples DESTINATION ${SHAPER_INSTALL_PYTHON_API})
+INSTALL(FILES shaper.py DESTINATION ${SHAPER_INSTALL_PYTHON_API})
 
 # --------- Unit tests -----------
 INCLUDE(UnitTest)
index 37f3efc05c2a310148fccbee2fd766c955c0609b..881c75c854e94ab4da8a96793700e650e92b50fa 100644 (file)
@@ -3,8 +3,20 @@
 
 SET(CMAKE_AUTOMOC ON)
 
-INSTALL(FILES addons_Features.py addons_Features.xml DESTINATION plugins)
+# configuration
+IF(${HAVE_SALOME})
+  SET(ADDONS_FOLDER_PATH ../../../../bin/salome)
+ELSE(${HAVE_SALOME})
+  SET(ADDONS_FOLDER_PATH ../addons)
+ENDIF(${HAVE_SALOME})
 
+CONFIGURE_FILE(
+  "${CMAKE_CURRENT_SOURCE_DIR}/addons_Features.xml.in"
+  "${CMAKE_CURRENT_BINARY_DIR}/addons_Features.xml"
+  )
 
-INSTALL(FILES __init__.py DESTINATION addons)
-INSTALL(DIRECTORY macros DESTINATION addons)
+INSTALL(FILES addons_Features.py DESTINATION ${SHAPER_INSTALL_ADDONS})
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/addons_Features.xml DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
+
+INSTALL(FILES __init__.py DESTINATION ${SHAPER_INSTALL_ADDONS})
+INSTALL(DIRECTORY macros DESTINATION ${SHAPER_INSTALL_ADDONS})
diff --git a/src/PythonAddons/addons_Features.xml b/src/PythonAddons/addons_Features.xml
deleted file mode 100644 (file)
index 97ffbd1..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<plugin>
-  <source path="../addons/macros/box/widget.xml"/>
-  <source path="../addons/macros/rectangle/widget.xml"/>
-</plugin>
diff --git a/src/PythonAddons/addons_Features.xml.in b/src/PythonAddons/addons_Features.xml.in
new file mode 100644 (file)
index 0000000..68b1681
--- /dev/null
@@ -0,0 +1,4 @@
+<plugin>
+  <source path="@ADDONS_FOLDER_PATH@/macros/box/widget.xml"/>
+  <source path="@ADDONS_FOLDER_PATH@/macros/rectangle/widget.xml"/>
+</plugin>
index e21ab22061772be8f8a96b8214938cc300ed23a2..a70ef0845425c1d8e7e70d1164091861fb33c48b 100644 (file)
@@ -12,7 +12,7 @@ SET(PROJECT_HEADERS
        SHAPERGUI_NestedButton.h
 )
 
-SET(PROJECT_AUTOMOC 
+SET(PROJECT_AUTOMOC
     ${CMAKE_CURRENT_BINARY_DIR}/SHAPERGUI_automoc.cpp
 )
 
@@ -58,9 +58,9 @@ INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/XGUI
                     ${CAS_INCLUDE_DIRS}
 )
 
-ADD_LIBRARY(SHAPER SHARED 
-       ${PROJECT_SOURCES} 
-       ${PROJECT_HEADERS} 
+ADD_LIBRARY(SHAPER SHARED
+       ${PROJECT_SOURCES}
+       ${PROJECT_HEADERS}
 )
 
 ADD_DEPENDENCIES(SHAPER XGUI)
@@ -68,5 +68,5 @@ ADD_DEPENDENCIES(SHAPER XGUI)
 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
 TARGET_LINK_LIBRARIES(SHAPER ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS SHAPER DESTINATION bin)
-INSTALL(FILES ${PROJECT_RESOURCES} DESTINATION share/salome/resources/shaper )
+INSTALL(TARGETS SHAPER DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${PROJECT_RESOURCES} DESTINATION ${SHAPER_INSTALL_RESOURCES})
index ecb1cb269e38b43beae1887d5c754f85ee2211da..0f54cd5e397a5a6be362c0eb08794652494718f1 100644 (file)
@@ -101,8 +101,8 @@ INCLUDE_DIRECTORIES(
   ../SketcherPrs
 )
 
-INSTALL(TARGETS SketchPlugin DESTINATION plugins)
-INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
+INSTALL(TARGETS SketchPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
+INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
 
 ADD_UNIT_TESTS(TestSketchPointLine.py
                TestSketchArcCircle.py
index 8e18f16da387b9314ba5bce708b62bf11d92e2e3..e8ebc506c114a3edcfada67adda3634b40adde58 100644 (file)
@@ -75,7 +75,7 @@ ADD_LIBRARY(SketchSolver SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}
 TARGET_LINK_LIBRARIES(SketchSolver ${PROJECT_LIBRARIES}
 )
 
-INSTALL(TARGETS SketchSolver DESTINATION plugins)
+INSTALL(TARGETS SketchSolver DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
 
 
 # Include specific solvers
index 73c890e23d7311f357dd5479f77483c931db807c..5d3647429f8739eb6fbf97b5c344a6f055df5522 100644 (file)
@@ -48,4 +48,4 @@ INCLUDE_DIRECTORIES(
 
 ADD_LIBRARY(PlaneGCSSolver MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS})
 TARGET_LINK_LIBRARIES(PlaneGCSSolver ${PROJECT_LIBRARIES})
-INSTALL(TARGETS PlaneGCSSolver DESTINATION plugins)
+INSTALL(TARGETS PlaneGCSSolver DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
index cda6e3bc1834cbf03097b8ca095975e34c5aaccd..af555779af1d65ca54322b895582930f6e264ae7 100644 (file)
@@ -39,4 +39,4 @@ INCLUDE_DIRECTORIES(
 
 ADD_LIBRARY(SolveSpaceSolver MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS})
 TARGET_LINK_LIBRARIES(SolveSpaceSolver ${PROJECT_LIBRARIES})
-INSTALL(TARGETS SolveSpaceSolver DESTINATION plugins)
+INSTALL(TARGETS SolveSpaceSolver DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
index 148f332ad5a0c8f6831a1110ff1bc487dbb7934f..e988b9a8471cca312043b4fc33f8f2eade10a34b 100644 (file)
@@ -97,5 +97,5 @@ INCLUDE_DIRECTORIES(
 
 TARGET_LINK_LIBRARIES(SketcherPrs ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS SketcherPrs DESTINATION bin)
-INSTALL(FILES ${PROJECT_PICTURES} DESTINATION resources)
\ No newline at end of file
+INSTALL(TARGETS SketcherPrs DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${PROJECT_PICTURES} DESTINATION ${SHAPER_INSTALL_RESOURCES})
index bebf1a79c6805ced60f0a2c8b51340d2dfeaf4d8..bc850e69abb5dcc6963b7a70ba43629f0616592c 100644 (file)
@@ -28,7 +28,7 @@ SET(PROJECT_HEADERS
        XGUI_WorkshopListener.h
 )
 
-SET(PROJECT_AUTOMOC 
+SET(PROJECT_AUTOMOC
     ${CMAKE_CURRENT_BINARY_DIR}/XGUI_automoc.cpp
 )
 
@@ -56,7 +56,7 @@ SET(PROJECT_SOURCES
        XGUI_WorkshopListener.cpp
 )
 
-SET(PROJECT_RESOURCES 
+SET(PROJECT_RESOURCES
     XGUI_pictures.qrc
 )
 
@@ -89,7 +89,7 @@ IF(NOT ${HAVE_SALOME})
 ENDIF(NOT ${HAVE_SALOME})
 
 
-IF(WIN32) 
+IF(WIN32)
     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
 ELSE()
     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
@@ -98,7 +98,7 @@ ENDIF()
 QT4_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
 
-QT4_CREATE_TRANSLATION(QM_RESOURCES 
+QT4_CREATE_TRANSLATION(QM_RESOURCES
                                           ${PROJECT_SOURCES}
                                           ${TEXT_RESOURCES}
                                           OPTIONS -extensions cpp -no-recursive
@@ -111,7 +111,7 @@ SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES} ${PROJECT_RESOURCES} ${PR
 
 ADD_DEFINITIONS( -DXGUI_EXPORTS ${CAS_DEFINITIONS} )
 
-SET(PROJECT_INCLUDES 
+SET(PROJECT_INCLUDES
     ${PROJECT_SOURCE_DIR}/src/Events
     ${PROJECT_SOURCE_DIR}/src/Config
     ${PROJECT_SOURCE_DIR}/src/ModelAPI
@@ -126,13 +126,13 @@ IF(NOT ${HAVE_SALOME})
 ENDIF(NOT ${HAVE_SALOME})
 
 INCLUDE_DIRECTORIES(${PROJECT_INCLUDES})
-                         
+
 LINK_DIRECTORIES($ENV{PYTHON_LIB_DIR})
 
-ADD_LIBRARY(XGUI SHARED 
-       ${PROJECT_SOURCES} 
-       ${PROJECT_HEADERS} 
-       ${PROJECT_COMPILED_RESOURCES} 
+ADD_LIBRARY(XGUI SHARED
+       ${PROJECT_SOURCES}
+       ${PROJECT_HEADERS}
+       ${PROJECT_COMPILED_RESOURCES}
        ${TEXT_RESOURCES}
        ${QM_RESOURCES}
        ${PREFERENCES_XML}
@@ -143,7 +143,6 @@ ADD_DEPENDENCIES(XGUI ModelAPI)
 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
 TARGET_LINK_LIBRARIES(XGUI ${PROJECT_LIBRARIES})
 
-INSTALL(TARGETS XGUI DESTINATION bin)
-INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)
-INSTALL(FILES ${PREFERENCES_XML} DESTINATION resources)
-
+INSTALL(TARGETS XGUI DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${QM_RESOURCES} DESTINATION ${SHAPER_INSTALL_QM_RESOURCES})
+INSTALL(FILES ${PREFERENCES_XML} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})