# User options
# ============
-option(RELOCATABLE "Make installed targets relocatable (disable by default)" OFF)
OPTION(SALOME_BUILD_DOC "Generate SALOME KERNEL documentation" ON)
OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
SET(SALOME_KERNEL_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/kernel" CACHE PATH "Install path: SALOME KERNEL specific data")
SET(SALOME_KERNEL_INSTALL_RES_SCRIPTS "${SALOME_INSTALL_RES}/kernel" CACHE PATH "Install path: SALOME KERNEL specific scripts")
-################
-# Runtime path #
-################
-
-# Define the rpath
-macro(complete_rpath rpath root_dir)
- if(NOT "${${root_dir}}" STREQUAL "${CMAKE_INSTALL_PREFIX}")
- # the RPATH to be used when installing, but only if it's not a system directory
- list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${${root_dir}}/lib" isSystemDir)
- if("${isSystemDir}" STREQUAL "-1")
- message(STATUS "==> add to rpath ${${root_dir}}/lib")
- set(${rpath}
- "${${rpath}}"
- "${${root_dir}}/lib")
- endif("${isSystemDir}" STREQUAL "-1")
- unset(isSystemDir)
- endif(NOT "${${root_dir}}" STREQUAL "${CMAKE_INSTALL_PREFIX}")
-endmacro()
-
-# Set the run-time search path if the installation isn't relocatable
-if(RELOCATABLE)
- set(rpath_install_libs "$ORIGIN/../../${SALOME_INSTALL_LIBS}")
- set(rpath_install_python "$ORIGIN/../../../../${SALOME_INSTALL_PYTHON}:$ORIGIN/../../../../${SALOME_INSTALL_LIBS}")
- message(STATUS "==> rpath_install_libs is set to ${rpath_install_libs}")
- message(STATUS "==> rpath_install_python is set to ${rpath_install_python}")
-endif(RELOCATABLE)
-
MARK_AS_ADVANCED(SALOME_INSTALL_BINS SALOME_INSTALL_LIBS SALOME_INSTALL_IDLS SALOME_INSTALL_HEADERS)
MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_SCRIPTS SALOME_INSTALL_SCRIPT_DATA SALOME_INSTALL_SCRIPT_PYTHON)
MARK_AS_ADVANCED(SALOME_INSTALL_APPLISKEL_SCRIPTS SALOME_INSTALL_APPLISKEL_PYTHON SALOME_INSTALL_CMAKE SALOME_INSTALL_CMAKE_LOCAL SALOME_INSTALL_RES)
MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED SALOME_KERNEL_INSTALL_RES_DATA SALOME_KERNEL_INSTALL_RES_SCRIPTS SALOME_INSTALL_DOC)
MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG SALOME_INSTALL_AMCONFIG_LOCAL)
-if(RELOCATABLE)
- MARK_AS_ADVANCED(rpath_install_libs rpath_install_libs rpath_install_python)
-endif(RELOCATABLE)
# Accumulate environment variables for KERNEL module
SALOME_ACCUMULATE_ENVIRONMENT(PYTHONPATH NOCHECK ${CMAKE_INSTALL_PREFIX}/${SALOME_INSTALL_BINS}
DESTINATION ${KERNEL_TEST_DIR}
RENAME CTestTestfile.cmake)
-if(RELOCATABLE)
- # rpath_install_test_bins should be used with by concataing it with the bin test directory
- set(rpath_install_test_libs "$ORIGIN/../../../../../${KERNEL_TEST_LIB}:$ORIGIN/../../../../../${SALOME_INSTALL_LIBS}")
- set(rpath_install_test_bins "${rpath_install_test_libs}:$ORIGIN/../../../../../${SALOME_INSTALL_LIBS}")
- message(STATUS "==> rpath_install_test_bins is set to ${rpath_install_test_bins}")
- message(STATUS "==> rpath_install_test_libs is set to ${rpath_install_test_libs}")
- MARK_AS_ADVANCED(rpath_install_test_bins rpath_install_test_libs)
-endif(RELOCATABLE)
IF(SALOME_LIGHT_ONLY)
ADD_DEFINITIONS(-DSALOME_LIGHT)
ADD_DEFINITIONS(${COMMON_FLAGS})
TARGET_LINK_LIBRARIES(SalomeIDLKernel ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeIDLKernel
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
-
INSTALL(TARGETS SalomeIDLKernel EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
IF(SALOME_PACO_PARALLEL)
${SalomeParallelIDLKernel_GEN_PACO_SOURCES}
)
ADD_DEPENDENCIES(SalomeParallelIDLKernel BUILD_PAR_INCLUDES)
- if(RELOCATABLE)
- set_property(
- TARGET SalomeParallelIDLKernel
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
- endif()
INSTALL(TARGETS SalomeParallelIDLKernel EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ENDIF()
SWIG_ADD_LIBRARY(ArgvKeeper LANGUAGE python SOURCES ArgvKeeper.i ArgvKeeper.hxx)
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_ArgvKeeper_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _ArgvKeeper_d)
+ SET_TARGET_PROPERTIES(_ArgvKeeper PROPERTIES DEBUG_OUTPUT_NAME _ArgvKeeper_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(ArgvKeeper ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} ArgvKeeper)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_ArgvKeeper_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-INSTALL(TARGETS ${SWIG_MODULE_ArgvKeeper_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+INSTALL(TARGETS _ArgvKeeper DESTINATION ${SALOME_INSTALL_PYTHON})
SALOME_INSTALL_SCRIPTS( "${_swig_SCRIPTS}" ${SALOME_INSTALL_PYTHON} DEF_PERMS)
# Tests
ADD_EXECUTABLE(TestArgvKeeper ArgvKeeperTest.cxx TestArgvKeeper.cxx)
TARGET_LINK_LIBRARIES(TestArgvKeeper ArgvKeeper ${CPPUNIT_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET TestArgvKeeper
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestArgvKeeper DESTINATION ${LOCAL_TEST_DIR})
INSTALL(FILES test_ArgvKeeper.py DESTINATION ${LOCAL_TEST_DIR})
ADD_LIBRARY(SALOMELog ${SALOMELog_SOURCES})
TARGET_LINK_LIBRARIES(SALOMELog ${PLATFORM_LIBS} ${PTHREAD_LIBRARIES})
+INSTALL(TARGETS SALOMELog EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_LIBRARY(SALOMEBasics ${SALOMEBasics_SOURCES})
-if(RELOCATABLE)
- set_property(
- TARGET SALOMELog SALOMEBasics
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
-
-INSTALL(TARGETS SALOMELog EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(TARGETS SALOMEBasics EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
TARGET_LINK_LIBRARIES(SALOMEBasics SALOMELog ${PLATFORM_LIBS} ${PTHREAD_LIBRARIES})
SWIG_ADD_LIBRARY(KernelBasis LANGUAGE python SOURCES ${KernelBasis_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelBasis_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelBasis_d)
+ SET_TARGET_PROPERTIES(_KernelBasis PROPERTIES DEBUG_OUTPUT_NAME _KernelBasis_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelBasis ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SALOMEBasics)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelBasis_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelBasis_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelBasis DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelBasis_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
install(FILES ${_swig_SCRIPTS} DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_LIBRARY(SalomeCommunication ${SalomeCommunication_SOURCES})
TARGET_LINK_LIBRARIES(SalomeCommunication ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeCommunication
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeCommunication EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(COMMON_HEADERS_HXX
SWIG_LINK_LIBRARIES(libSALOME_Comm ${_libSALOME_Comm_LIBS})
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_libSALOME_Comm_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _libSALOME_Comm_d)
+ SET_TARGET_PROPERTIES(_libSALOME_Comm PROPERTIES DEBUG_OUTPUT_NAME _libSALOME_Comm_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
-ADD_DEPENDENCIES(${SWIG_MODULE_libSALOME_Comm_REAL_NAME} SalomeIDLKernel)
+ADD_DEPENDENCIES(_libSALOME_Comm SalomeIDLKernel)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_libSALOME_Comm_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-
-INSTALL(TARGETS ${SWIG_MODULE_libSALOME_Comm_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+INSTALL(TARGETS _libSALOME_Comm DESTINATION ${SALOME_INSTALL_PYTHON})
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libSALOME_Comm.py DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_LIBRARY(SalomeContainer ${SalomeContainer_SOURCES})
TARGET_LINK_LIBRARIES(SalomeContainer ${COMMON_LIBS} ${PTHREAD_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeContainer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(SALOME_Container_LIBS
ADD_LIBRARY(SalomeContainerServer SALOME_Container_SignalsHandler.cxx)
TARGET_LINK_LIBRARIES(SalomeContainerServer ${SALOME_Container_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeContainerServer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeContainerServer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(SALOME_Container SALOME_Container.cxx)
ADD_EXECUTABLE(TestSalome_file TestSalome_file.cxx)
TARGET_LINK_LIBRARIES(TestSalome_file SALOMETraceCollectorTest ${SALOME_Container_LIBS})
ENDIF()
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_Container SALOME_Container_No_NS_Serv SALOME_Container_No_NS_Serv_OutProcess SALOME_Container_No_NS_Serv_OutProcess_Replay SALOME_Container_No_NS_Serv_OutProcess_FT SALOME_Container_No_NS_Serv_OutProcess_Replay_FT
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SALOME_Container SALOME_Container_No_NS_Serv SALOME_Container_No_NS_Serv_OutProcess SALOME_Container_No_NS_Serv_OutProcess_Replay SALOME_Container_No_NS_Serv_OutProcess_FT SALOME_Container_No_NS_Serv_OutProcess_Replay_FT DESTINATION ${SALOME_INSTALL_BINS})
# Executable scripts to be installed
SWIG_ADD_LIBRARY(KernelContainer LANGUAGE python SOURCES ${KernelContainer_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelContainer_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelContainer_d)
+ SET_TARGET_PROPERTIES(_KernelContainer PROPERTIES DEBUG_OUTPUT_NAME _KernelContainer_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelContainer ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeContainer SalomeKernelHelpers)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelContainer_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelContainer_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelContainer DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelContainer_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
# /!\ Order of next 2 lines is important
# because SALOME_INSTALL_SCRIPTS macro will compute the pyc/pyo files
ADD_EXECUTABLE(testDF testDF.cxx)
TARGET_LINK_LIBRARIES(testDF DF SALOMEBasics)
-if(RELOCATABLE)
- set_property(
- TARGET testDF
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS testDF DESTINATION ${SALOME_INSTALL_BINS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SalomeDSCContainer ${SalomeDSCContainer_SOURCES})
TARGET_LINK_LIBRARIES(SalomeDSCContainer SalomeContainer ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeDSCContainer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeDSCContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(SALOME_ConnectionManagerServer_SOURCES
ADD_EXECUTABLE(SALOME_ConnectionManagerServer ${SALOME_ConnectionManagerServer_SOURCES})
TARGET_LINK_LIBRARIES(SALOME_ConnectionManagerServer ${SALOME_ConnectionManagerServer_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_ConnectionManagerServer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SALOME_ConnectionManagerServer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
SWIG_ADD_LIBRARY(calcium LANGUAGE python SOURCES calcium.i)
ENDIF()
-SWIG_LINK_LIBRARIES(calcium ${${SWIG_MODULE_calcium_REAL_NAME}})
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_calcium_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-INSTALL(TARGETS ${SWIG_MODULE_calcium_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+SWIG_LINK_LIBRARIES(calcium ${_calcium_LIBS})
+INSTALL(TARGETS _calcium DESTINATION ${SALOME_INSTALL_PYTHON})
SET(SCRIPTS
dsccalcium.py
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
ADD_LIBRARY(SalomeDSCSupervBasic ${SalomeDSCSupervBasic_SOURCES})
TARGET_LINK_LIBRARIES(SalomeDSCSupervBasic SalomeDSCSuperv)
-if(RELOCATABLE)
- set_property(
- TARGET SalomeDSCSupervBasic
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeDSCSupervBasic EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SalomeDSCSuperv ${SalomeDSCSuperv_SOURCES})
TARGET_LINK_LIBRARIES(SalomeDSCSuperv SalomeDSCContainer ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeDSCSuperv
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeDSCSuperv EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(test_DSC_Exception test_DSC_Exception.cxx)
ADD_LIBRARY(SalomeDatastream fake.cc)
TARGET_LINK_LIBRARIES(SalomeDatastream ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeDatastream
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeDatastream EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(COMMON_HEADERS_HXX
ADD_LIBRARY(SalomeCalcium ${SalomeCalcium_SOURCES})
TARGET_LINK_LIBRARIES(SalomeCalcium SalomeDSCSuperv SalomeContainer ${OMNIORB_LIBRARIES} ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeCalcium
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeCalcium EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
)
ADD_LIBRARY(CalciumC ${CalciumC_SOURCES})
TARGET_LINK_LIBRARIES(CalciumC SalomeDSCSuperv SalomeCalcium)
-if(RELOCATABLE)
- set_property(
- TARGET CalciumC
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS CalciumC EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_LIBRARY(SalomePalm palm_port_factory.cxx)
TARGET_LINK_LIBRARIES(SalomePalm SalomeDSCSuperv ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SalomePalm
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomePalm EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_LIBRARY(SalomeParallelDSCContainer ${SalomeParallelDSCContainer_SOURCES})
ADD_DEPENDENCIES(SalomeParallelDSCContainer SalomeParallelIDLKernel)
-if(RELOCATABLE)
- set_property(
- TARGET SalomeParallelDSCContainer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeParallelDSCContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
ADD_LIBRARY(SalomeGenericObj SALOME_GenericObj_i.cc)
TARGET_LINK_LIBRARIES(SalomeGenericObj SALOMELocalTrace SalomeIDLKernel)
-if(RELOCATABLE)
- set_property(
- TARGET SalomeGenericObj
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeGenericObj EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES SALOME_GenericObj_i.hh SALOME_GenericObj_wrap.hxx DESTINATION ${SALOME_INSTALL_HEADERS})
ADD_LIBRARY(SalomeHDFPersist ${SalomeHDFPersist_SOURCES})
TARGET_LINK_LIBRARIES(SalomeHDFPersist ${HDF5_LIBRARIES} ${MPI_LIBRARIES} ${PLATFORM_LIBS} SALOMEBasics)
-if(RELOCATABLE)
- set_property(
- TARGET SalomeHDFPersist
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeHDFPersist EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SalomeORB ${SalomeORB_SOURCES})
TARGET_LINK_LIBRARIES(SalomeORB OpUtil ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeORB
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeORB EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(SalomeKernelHelpers_LIBS
ADD_LIBRARY(SalomeKernelHelpers ${SalomeKernelHelpers_SOURCES})
TARGET_LINK_LIBRARIES(SalomeKernelHelpers ${SalomeKernelHelpers_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeKernelHelpers
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeKernelHelpers EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(KernelHelpersUseCases KernelHelpersUseCases.cxx)
TARGET_LINK_LIBRARIES(KernelHelpersUseCases SalomeKernelHelpers ${SalomeKernelHelpers_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET KernelHelpersUseCases
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS KernelHelpersUseCases DESTINATION ${SALOME_INSTALL_BINS})
#
SWIG_ADD_LIBRARY(KernelServices LANGUAGE python SOURCES ${KernelServices_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelServices_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelServices_d)
+ SET_TARGET_PROPERTIES(_KernelServices PROPERTIES DEBUG_OUTPUT_NAME _KernelServices_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelServices ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeKernelHelpers)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelServices_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelServices_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelServices DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelServices_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
install(FILES ${_swig_SCRIPTS} DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_LIBRARY(SalomeKernelHelpersTest KernelHelpersUnitTests.cxx)
TARGET_LINK_LIBRARIES(SalomeKernelHelpersTest ${SalomeKernelHelpersTest_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeKernelHelpersTest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS SalomeKernelHelpersTest DESTINATION ${KERNEL_TEST_LIB})
ADD_EXECUTABLE(TestKernelHelpers TestKernelHelpers.cxx)
TARGET_LINK_LIBRARIES(TestKernelHelpers SalomeKernelHelpersTest ${SalomeKernelHelpersTest_LIBS})
#ADD_TEST(TestKernelHelpers TestKernelHelpers)
-if(RELOCATABLE)
- set_property(
- TARGET TestKernelHelpers
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestKernelHelpers DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
ADD_LIBRARY(Launcher ${Launcher_SOURCES})
TARGET_LINK_LIBRARIES(Launcher ResourcesManager ${LIBBATCH_LIBRARIES} ${LIBXML2_LIBS} ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
-if(RELOCATABLE)
- set(rpath "${rpath_install_libs}")
- complete_rpath(rpath LIBBATCH_ROOT_DIR)
- set_property(
- TARGET Launcher
- PROPERTY INSTALL_RPATH "${rpath}"
- )
-endif()
INSTALL(TARGETS Launcher EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(TestLauncher_LIBS
# TestLauncher needs only (and must need only) libxml, libbatch, ResourceManager and Launcher libraries!
ADD_EXECUTABLE(TestLauncher TestLauncher.cxx)
TARGET_LINK_LIBRARIES(TestLauncher ${TestLauncher_LIBS})
-if(RELOCATABLE)
- set(rpath "${rpath_install_libs}")
- complete_rpath(rpath LIBBATCH_ROOT_DIR)
- set_property(
- TARGET TestLauncher
- PROPERTY INSTALL_RPATH "${rpath}"
- )
-endif()
INSTALL(TARGETS TestLauncher DESTINATION ${SALOME_INSTALL_BINS})
ADD_LIBRARY(SalomeLauncher BatchTest.cxx SALOME_Launcher.cxx SALOME_ExternalServerLauncher.cxx SALOME_LauncherException.cxx SALOME_ExternalServerHandler.cxx SALOME_LogManager.cxx)
TARGET_LINK_LIBRARIES(SalomeLauncher Launcher ${COMMON_LIBS})
-if(RELOCATABLE)
- set(rpath "${rpath_install_libs}")
- complete_rpath(rpath LIBBATCH_ROOT_DIR)
- set_property(
- TARGET SalomeLauncher
- PROPERTY INSTALL_RPATH "${rpath}"
- )
-endif()
INSTALL(TARGETS SalomeLauncher EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(SALOME_LauncherServer_LIBS
ADD_EXECUTABLE(SALOME_LauncherServer SALOME_LauncherServer.cxx)
TARGET_LINK_LIBRARIES(SALOME_LauncherServer ${SALOME_LauncherServer_LIBS})
-if(RELOCATABLE)
- set(rpath "${rpath_install_libs}")
- complete_rpath(rpath LIBBATCH_ROOT_DIR)
- set_property(
- TARGET SALOME_LauncherServer
- PROPERTY INSTALL_RPATH "${rpath}"
- )
-endif()
INSTALL(TARGETS SALOME_LauncherServer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
SET(COMMON_HEADERS_HXX
SWIG_ADD_LIBRARY(KernelLauncher LANGUAGE python SOURCES ${KernelLauncher_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelLauncher_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelLauncher_d)
+ SET_TARGET_PROPERTIES(_KernelLauncher PROPERTIES DEBUG_OUTPUT_NAME _KernelLauncher_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelLauncher ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeDS SalomeKernelHelpers)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelLauncher_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelLauncher_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelLauncher DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelLauncher_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
ADD_LIBRARY(LauncherWrapHelper LauncherResourceDefinition.cxx)
TARGET_LINK_LIBRARIES(LauncherWrapHelper Launcher)
-if(RELOCATABLE)
- set_property(
- TARGET LauncherWrapHelper
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS LauncherWrapHelper EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
IF(WIN32)
ADD_LIBRARY(LauncherWrapHelper_static STATIC LauncherResourceDefinition.cxx)
ENDIF(WIN32)
SWIG_CHECK_GENERATION(${Launcher_target_name})
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_${Launcher_target_name}_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
INSTALL(TARGETS ${SWIG_MODULE_${Launcher_target_name}_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_LIBRARY(SalomeLifeCycleCORBA SALOME_LifeCycleCORBA.cxx SALOME_FileTransferCORBA.cxx)
TARGET_LINK_LIBRARIES(SalomeLifeCycleCORBA ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeLifeCycleCORBA
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeLifeCycleCORBA EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(Test_LifeCycleCORBA Test_LifeCycleCORBA.cxx)
ADD_EXECUTABLE(TestContainerManager TestContainerManager.cxx)
TARGET_LINK_LIBRARIES(TestContainerManager SalomeLifeCycleCORBA Registry SalomeNotification SalomeContainer ${COMMON_LIBS} ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET Test_LifeCycleCORBA TestContainerManager
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
-
INSTALL(TARGETS Test_LifeCycleCORBA TestContainerManager DESTINATION ${SALOME_INSTALL_BINS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(LifeCycleCORBATest LifeCycleCORBATest.cxx)
TARGET_LINK_LIBRARIES(LifeCycleCORBATest ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET LifeCycleCORBATest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS LifeCycleCORBATest DESTINATION ${KERNEL_TEST_LIB})
ADD_EXECUTABLE(TestLifeCycleCORBA TestLifeCycleCORBA.cxx)
TARGET_LINK_LIBRARIES(TestLifeCycleCORBA LifeCycleCORBATest NamingServiceTest SalomeLifeCycleCORBA ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET TestLifeCycleCORBA
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestLifeCycleCORBA DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
ENDIF()
SWIG_LINK_LIBRARIES(libSALOME_LifeCycleCORBA ${PYTHON_LIBRARIES} SalomeLifeCycleCORBA)
-TARGET_LINK_LIBRARIES(${SWIG_MODULE_libSALOME_LifeCycleCORBA_REAL_NAME} ${PLATFORM_LIBS})
+TARGET_LINK_LIBRARIES(_libSALOME_LifeCycleCORBA ${PLATFORM_LIBS})
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_libSALOME_LifeCycleCORBA_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _libSALOME_LifeCycleCORBA_d)
+ SET_TARGET_PROPERTIES(_libSALOME_LifeCycleCORBA PROPERTIES DEBUG_OUTPUT_NAME _libSALOME_LifeCycleCORBA_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_libSALOME_LifeCycleCORBA_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-INSTALL(TARGETS ${SWIG_MODULE_libSALOME_LifeCycleCORBA_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+INSTALL(TARGETS _libSALOME_LifeCycleCORBA DESTINATION ${SALOME_INSTALL_PYTHON})
SET(SCRIPTS
TestLifeCycleCORBA.py
)
ADD_LIBRARY(SalomeLoggerServer SALOME_Trace.cxx SALOME_Logger_Server.cxx)
TARGET_LINK_LIBRARIES(SalomeLoggerServer SalomeKernelHelpers SalomeIDLKernel ${OMNIORB_LIBRARIES} ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeLoggerServer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeLoggerServer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(SALOME_Logger_Server_SOURCES
ADD_EXECUTABLE(SALOME_Logger_Server ${SALOME_Logger_Server_SOURCES})
TARGET_LINK_LIBRARIES(SALOME_Logger_Server ${SALOME_Logger_Server_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_Logger_Server
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SALOME_Logger_Server EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
SET(KernelLogger_HEADERS KernelLogger.hxx KernelLogger.i)
SWIG_ADD_LIBRARY(KernelLogger LANGUAGE python SOURCES ${KernelLogger_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelLogger_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelLogger_d)
+ SET_TARGET_PROPERTIES(_KernelLogger PROPERTIES DEBUG_OUTPUT_NAME _KernelLogger_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelLogger ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeLoggerServer)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelLogger_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelLogger_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelLogger DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelLogger_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
install(FILES ${_swig_SCRIPTS} SALOME_Trace.py DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_LIBRARY(SalomeMPIContainer MPIObject_i.cxx MPIContainer_i.cxx)
TARGET_LINK_LIBRARIES(SalomeMPIContainer ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeMPIContainer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeMPIContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(SALOME_MPIContainer SALOME_MPIContainer.cxx)
ADD_EXECUTABLE(getMPIImplementation getMPIImplementation.cxx)
TARGET_LINK_LIBRARIES(getMPIImplementation ${MPI_CXX_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_MPIContainer testMPI2 getMPIImplementation
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
-
INSTALL(TARGETS SALOME_MPIContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
INSTALL(TARGETS testMPI2 DESTINATION ${SALOME_INSTALL_BINS})
INSTALL(TARGETS getMPIImplementation DESTINATION ${SALOME_INSTALL_BINS})
ADD_LIBRARY(SalomeCatalog ${SalomeCatalog_SOURCES})
TARGET_LINK_LIBRARIES(SalomeCatalog ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeCatalog
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeCatalog EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(SALOME_ModuleCatalog_Server SALOME_ModuleCatalog_Server.cxx)
ADD_EXECUTABLE(SALOME_ModuleCatalog_Client SALOME_ModuleCatalog_Client.cxx)
TARGET_LINK_LIBRARIES(SALOME_ModuleCatalog_Client SalomeCatalog ${COMMON_LIBS} ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_ModuleCatalog_Client SALOME_ModuleCatalog_Server
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
#
SET(KernelModuleCatalog_HEADERS KernelModuleCatalog.hxx KernelModuleCatalog.i)
SWIG_ADD_LIBRARY(KernelModuleCatalog LANGUAGE python SOURCES ${KernelModuleCatalog_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelModuleCatalog_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelModuleCatalog_d)
+ SET_TARGET_PROPERTIES(_KernelModuleCatalog PROPERTIES DEBUG_OUTPUT_NAME _KernelModuleCatalog_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelModuleCatalog ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeCatalog SalomeKernelHelpers)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelModuleCatalog_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelModuleCatalog_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelModuleCatalog DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelModuleCatalog_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
install(FILES ${_swig_SCRIPTS} DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_libNOTIFICATION_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _libNOTIFICATION_d)
+ SET_TARGET_PROPERTIES(_libNOTIFICATION PROPERTIES DEBUG_OUTPUT_NAME _libNOTIFICATION_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_libNOTIFICATION_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-INSTALL(TARGETS ${SWIG_MODULE_libNOTIFICATION_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+INSTALL(TARGETS _libNOTIFICATION DESTINATION ${SALOME_INSTALL_PYTHON})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
ADD_LIBRARY(SalomeNS ${SalomeNS_SOURCES})
ADD_DEPENDENCIES(SalomeNS SalomeIDLKernel)
TARGET_LINK_LIBRARIES(SalomeNS OpUtil SalomeORB)
-if(RELOCATABLE)
- set_property(
- TARGET SalomeNS
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
+
INSTALL(TARGETS SalomeNS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
SWIG_ADD_LIBRARY(NamingService LANGUAGE python SOURCES ${NamingService_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_NamingService_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _NamingService_d)
+ SET_TARGET_PROPERTIES(_NamingService PROPERTIES DEBUG_OUTPUT_NAME _NamingService_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(NamingService ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeNS)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_NamingService_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_NamingService_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _NamingService DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${NamingService_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
install(FILES ${_swig_SCRIPTS} ${PACKAGES} DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_LIBRARY(NamingServiceTest NamingServiceTest.cxx)
TARGET_LINK_LIBRARIES(NamingServiceTest ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET NamingServiceTest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS NamingServiceTest DESTINATION ${KERNEL_TEST_LIB})
SET(TestNamingService_LIBS
ADD_EXECUTABLE(TestNamingService TestNamingService.cxx)
TARGET_LINK_LIBRARIES(TestNamingService ${TestNamingService_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET TestNamingService
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestNamingService DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
ADD_LIBRARY(SalomeNotification ${SalomeNotification_SOURCES})
TARGET_LINK_LIBRARIES(SalomeNotification ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeNotification
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeNotification EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SalomeParallelContainer ${SalomeParallelContainer_SOURCES})
TARGET_LINK_LIBRARIES(SalomeParallelContainer ${COMMON_LIBS} ${MPI_CXX_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeParallelContainer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeParallelContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
IF(SALOME_USE_MPI)
ADD_EXECUTABLE(SALOME_ParallelContainerNodeMpi SALOME_ParallelContainerNodeMpi.cxx)
TARGET_LINK_LIBRARIES(SALOME_ParallelContainerNodeMpi ${SALOME_ParallelContainerProxyMpi_LIBS})
- if(RELOCATABLE)
- set_property(
- TARGET SALOME_ParallelContainerProxyMpi SALOME_ParallelContainerNodeMpi
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
- endif()
-
INSTALL(TARGETS SALOME_ParallelContainerProxyMpi SALOME_ParallelContainerNodeMpi
EXPORT ${PROJECT_NAME}TargetGroup
DESTINATION ${SALOME_INSTALL_BINS})
ADD_EXECUTABLE(SALOME_ParallelContainerNodeDummy SALOME_ParallelContainerNodeDummy.cxx)
TARGET_LINK_LIBRARIES(SALOME_ParallelContainerNodeDummy ${SALOME_ParallelContainerProxyDummy_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_ParallelContainerNodeDummy SALOME_ParallelContainerProxyDummy
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
-
INSTALL(TARGETS SALOME_ParallelContainerNodeDummy SALOME_ParallelContainerProxyDummy DESTINATION ${SALOME_INSTALL_BINS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(Registry RegistryConnexion.cxx RegistryService.cxx)
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
TARGET_LINK_LIBRARIES(Registry SalomeNS OpUtil SALOMELocalTrace SalomeIDLKernel ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET Registry
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS Registry EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
SET(SALOME_Registry_Server_LIBS
ADD_EXECUTABLE(SALOME_Registry_Server SALOME_Registry_Server.cxx)
TARGET_LINK_LIBRARIES(SALOME_Registry_Server ${SALOME_Registry_Server_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_Registry_Server
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SALOME_Registry_Server EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(ResourcesManager ${ResourcesManager_SOURCES})
TARGET_LINK_LIBRARIES(ResourcesManager SALOMEBasics SALOMELocalTrace ${LIBXML2_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET ResourcesManager
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS ResourcesManager EXPORT ${PROJECT_NAME}TargetGroup
DESTINATION ${SALOME_INSTALL_LIBS})
)
ADD_LIBRARY(SalomeResourcesManager ${SalomeResourcesManager_SOURCES})
TARGET_LINK_LIBRARIES(SalomeResourcesManager ResourcesManager ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeResourcesManager
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeResourcesManager EXPORT ${PROJECT_NAME}TargetGroup
DESTINATION ${SALOME_INSTALL_LIBS})
ADD_LIBRARY(SalomeDS ${SalomeDS_SOURCES})
TARGET_LINK_LIBRARIES(SalomeDS ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeDS
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(SALOMEDS_Server SALOMEDS_Server.cxx)
SWIG_ADD_LIBRARY(KernelDS LANGUAGE python SOURCES ${KernelDS_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelDS_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelDS_d)
+ SET_TARGET_PROPERTIES(_KernelDS PROPERTIES DEBUG_OUTPUT_NAME _KernelDS_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelDS ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeDS SalomeKernelHelpers)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelDS_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelDS_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelDS DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
install(FILES ${_swig_SCRIPTS} SALOME_DriverPy.py DESTINATION ${SALOME_INSTALL_PYTHON})
-if(RELOCATABLE)
- set_property(
- TARGET SALOMEDS_Server SALOMEDS_Client
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SALOMEDS_Server SALOMEDS_Client
EXPORT ${PROJECT_NAME}TargetGroup
DESTINATION ${SALOME_INSTALL_BINS})
ADD_LIBRARY(SALOMEDSTest SALOMEDSTest.cxx)
TARGET_LINK_LIBRARIES(SALOMEDSTest ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOMEDSTest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS SALOMEDSTest DESTINATION ${KERNEL_TEST_LIB})
ADD_EXECUTABLE(TestSALOMEDS TestSALOMEDS.cxx)
TARGET_LINK_LIBRARIES(TestSALOMEDS SALOMEDSTest SALOMEBasics ${COMMON_LIBS} ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET TestSALOMEDS
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestSALOMEDS DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
ADD_LIBRARY(SalomeDSClient SALOMEDSClient_ClientFactory.cxx)
TARGET_LINK_LIBRARIES(SalomeDSClient SalomeIDLKernel ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeDSClient
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeDSClient EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SalomeDSImpl ${SalomeDSImpl_SOURCES})
TARGET_LINK_LIBRARIES(SalomeDSImpl SALOMELocalTrace ${COMMON_LIBS} ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeDSImpl
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeDSImpl EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(testDS testDS.cxx)
TARGET_LINK_LIBRARIES(testDS SalomeDSImpl ${COMMON_LIBS} ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET testDS
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS testDS DESTINATION ${SALOME_INSTALL_BINS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SALOMEDSImplTest SALOMEDSImplTest.cxx)
TARGET_LINK_LIBRARIES(SALOMEDSImplTest ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOMEDSImplTest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS SALOMEDSImplTest DESTINATION ${KERNEL_TEST_LIB})
ADD_EXECUTABLE(TestSALOMEDSImpl TestSALOMEDSImpl.cxx)
TARGET_LINK_LIBRARIES(TestSALOMEDSImpl SALOMEDSImplTest SalomeDSImpl NamingServiceTest ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET TestSALOMEDSImpl
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestSALOMEDSImpl DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
ADD_LIBRARY(SALOMELocalTrace ${SALOMELocalTrace_SOURCES})
TARGET_LINK_LIBRARIES(SALOMELocalTrace SALOMEBasics SALOMELog ${PLATFORM_LIBS} ${PTHREAD_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SALOMELocalTrace
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SALOMELocalTrace EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${COMMON_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
ADD_LIBRARY(SALOMELocalTraceTest SALOMELocalTraceTest.cxx)
TARGET_LINK_LIBRARIES(SALOMELocalTraceTest SALOMELocalTrace ${CPPUNIT_LIBRARIES} ${PTHREAD_LIBRARIES} ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOMELocalTraceTest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS SALOMELocalTraceTest DESTINATION ${KERNEL_TEST_LIB})
ADD_EXECUTABLE(TestSALOMELocalTrace TestSALOMELocalTrace.cxx)
TARGET_LINK_LIBRARIES(TestSALOMELocalTrace SALOMELocalTraceTest SALOMELocalTrace SALOMEBasics ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET TestSALOMELocalTrace
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestSALOMELocalTrace DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
ADD_LIBRARY(SalomeSDS ${SalomeSDS_SOURCES})
TARGET_LINK_LIBRARIES(SalomeSDS ${COMMON_LIBS} ${PTHREAD_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeSDS
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeSDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(SALOME_DataScopeServer SALOME_DataScopeServer.cxx)
TARGET_LINK_LIBRARIES(SALOME_DataScopeServer SalomeSDS)
ADD_EXECUTABLE(SALOME_DataScopeServer_SSL SALOME_DataScopeServer_SSL.cxx)
TARGET_LINK_LIBRARIES(SALOME_DataScopeServer_SSL SalomeSDS)
-if(RELOCATABLE)
- set_property(
- TARGET SALOME_DataScopeServer SALOME_DataScopeServer_SSL
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SALOME_DataScopeServer SALOME_DataScopeServer_SSL DESTINATION ${SALOME_INSTALL_BINS})
INSTALL(FILES SalomeSDSClt.py SALOMEWrappedStdType.py DESTINATION ${SALOME_INSTALL_PYTHON})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
SWIG_ADD_LIBRARY(KernelSDS LANGUAGE python SOURCES ${KernelSDS_SOURCES})
ENDIF()
IF(${MACHINE} STREQUAL WINDOWS)
- SET_TARGET_PROPERTIES(${SWIG_MODULE_KernelSDS_REAL_NAME} PROPERTIES DEBUG_OUTPUT_NAME _KernelSDS_d)
+ SET_TARGET_PROPERTIES(_KernelSDS PROPERTIES DEBUG_OUTPUT_NAME _KernelSDS_d)
ENDIF(${MACHINE} STREQUAL WINDOWS)
SWIG_LINK_LIBRARIES(KernelSDS ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SalomeSDS)
-if(RELOCATABLE)
- set_property(
- TARGET ${SWIG_MODULE_KernelSDS_REAL_NAME}
- PROPERTY INSTALL_RPATH "${rpath_install_python}"
- )
-endif()
-install(TARGETS ${SWIG_MODULE_KernelSDS_REAL_NAME} DESTINATION ${SALOME_INSTALL_PYTHON})
+install(TARGETS _KernelSDS DESTINATION ${SALOME_INSTALL_PYTHON})
install(FILES ${KernelSDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
install(FILES ${_swig_SCRIPTS} DESTINATION ${SALOME_INSTALL_PYTHON})
ADD_LIBRARY(with_loggerTraceCollector SALOMETraceCollector.cxx TraceCollector_WaitForServerReadiness.cxx)
TARGET_LINK_LIBRARIES(with_loggerTraceCollector SalomeNS ArgvKeeper SALOMELocalTrace SalomeLoggerServer OpUtil SalomeIDLKernel ${OMNIORB_LIBRARIES} ${PTHREAD_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET with_loggerTraceCollector
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS with_loggerTraceCollector EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SALOMETraceCollectorTest SALOMETraceCollectorTest.cxx)
TARGET_LINK_LIBRARIES(SALOMETraceCollectorTest ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SALOMETraceCollectorTest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS SALOMETraceCollectorTest DESTINATION ${KERNEL_TEST_LIB})
ADD_EXECUTABLE(TestSALOMETraceCollector TestSALOMETraceCollector.cxx)
TARGET_LINK_LIBRARIES(TestSALOMETraceCollector SALOMETraceCollectorTest ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET TestSALOMETraceCollector
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestSALOMETraceCollector DESTINATION ${LOCAL_TEST_DIR})
# Executable scripts to be installed
ADD_LIBRARY(TOOLSDS SALOMEDS_Tool.cxx)
ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS})
TARGET_LINK_LIBRARIES(TOOLSDS OpUtil SalomeIDLKernel ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET TOOLSDS
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS TOOLSDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_LIBRARY(SalomeTestComponentEngine ${SalomeTestComponentEngine_SOURCES})
TARGET_LINK_LIBRARIES(SalomeTestComponentEngine ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeTestComponentEngine
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeTestComponentEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(TestContainer TestContainer.cxx)
TARGET_LINK_LIBRARIES(TestContainer SalomeTestComponentEngine SALOMEBasics ${COMMON_LIBS} ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET TestLogger TestContainer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS TestLogger TestContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
ADD_LIBRARY(SalomeTestMPIComponentEngine TestMPIComponentEngine.cxx)
TARGET_LINK_LIBRARIES(SalomeTestMPIComponentEngine ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET SalomeTestMPIComponentEngine
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS SalomeTestMPIComponentEngine DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(TestMPIContainer TestMPIContainer.cxx)
TARGET_LINK_LIBRARIES(TestMPIContainer SalomeTestMPIComponentEngine ${COMMON_LIBS} ${MPI_CXX_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET TestMPIContainer
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS TestMPIContainer DESTINATION ${SALOME_INSTALL_BINS})
FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
ADD_EXECUTABLE(UnitTests UnitTests.cxx)
TARGET_LINK_LIBRARIES(UnitTests ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET UnitTests
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS UnitTests DESTINATION ${LOCAL_TEST_DIR})
INSTALL(FILES CTestTestfileInstall.cmake
ADD_LIBRARY(OpUtil ${OpUtil_SOURCES})
TARGET_LINK_LIBRARIES(OpUtil ${COMMON_LIBS})
-if(RELOCATABLE)
- set_property(
- TARGET OpUtil
- PROPERTY INSTALL_RPATH "${rpath_install_libs}"
- )
-endif()
INSTALL(TARGETS OpUtil EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
ADD_LIBRARY(UtilsTest UtilsTest.cxx)
TARGET_LINK_LIBRARIES(UtilsTest ${COMMON_LIBS} )
-if(RELOCATABLE)
- set_property(
- TARGET UtilsTest
- PROPERTY INSTALL_RPATH "${rpath_install_test_libs}"
- )
-endif()
INSTALL(TARGETS UtilsTest DESTINATION ${KERNEL_TEST_LIB})
ADD_EXECUTABLE(TestUtils TestUtils.cxx)
TARGET_LINK_LIBRARIES(TestUtils ${COMMON_LIBS} UtilsTest ${OMNIORB_LIBRARIES})
-if(RELOCATABLE)
- set_property(
- TARGET TestUtils
- PROPERTY INSTALL_RPATH "${rpath_install_test_bins}"
- )
-endif()
INSTALL(TARGETS TestUtils DESTINATION ${LOCAL_TEST_DIR})
INSTALL(FILES TestUtils.py DESTINATION ${LOCAL_TEST_DIR})