# Copyright (C) 2012 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # INCLUDE_DIRECTORIES( ${OMNIORB_INCLUDE_DIRS} ${PTHREAD_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS} ${BOOST_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/salome_adm ${CMAKE_CURRENT_SOURCE_DIR}/../Basics ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace ${CMAKE_CURRENT_SOURCE_DIR}/../HDFPersist ${CMAKE_CURRENT_SOURCE_DIR}/../DF ${CMAKE_CURRENT_SOURCE_DIR}/../GenericObj ${CMAKE_BINARY_DIR}/idl ${CMAKE_BINARY_DIR} ) # This local variable defines the list of FLAGS common to all target in this package. SET(COMMON_FLAGS "${HDF5_DEFINITIONS} ${OMNIORB_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}") # This local variable defines the list of dependant libraries common to all target in this package. SET(COMMON_LIBS SALOMEBasics SalomeHDFPersist DF SalomeGenericObj SalomeIDLKernel ${HDF5_LIBS} ) SET(SalomeDSImpl_SOURCES SALOMEDSImpl_Tool.cxx SALOMEDSImpl_Callback.cxx SALOMEDSImpl_StudyHandle.cxx SALOMEDSImpl_GenericAttribute.cxx SALOMEDSImpl_SObject.cxx SALOMEDSImpl_SComponent.cxx SALOMEDSImpl_ChildIterator.cxx SALOMEDSImpl_AttributeIOR.cxx SALOMEDSImpl_AttributeExternalFileDef.cxx SALOMEDSImpl_AttributeFileType.cxx SALOMEDSImpl_AttributePersistentRef.cxx SALOMEDSImpl_AttributeSequenceOfReal.cxx SALOMEDSImpl_AttributeSequenceOfInteger.cxx SALOMEDSImpl_AttributeDrawable.cxx SALOMEDSImpl_AttributeSelectable.cxx SALOMEDSImpl_AttributeExpandable.cxx SALOMEDSImpl_AttributeOpened.cxx SALOMEDSImpl_AttributeFlags.cxx SALOMEDSImpl_AttributeGraphic.cxx SALOMEDSImpl_AttributeTextColor.cxx SALOMEDSImpl_AttributeTextHighlightColor.cxx SALOMEDSImpl_AttributePixMap.cxx SALOMEDSImpl_AttributeLocalID.cxx SALOMEDSImpl_AttributeTarget.cxx SALOMEDSImpl_AttributeTableOfInteger.cxx SALOMEDSImpl_AttributeTableOfReal.cxx SALOMEDSImpl_AttributeTableOfString.cxx SALOMEDSImpl_AttributeStudyProperties.cxx SALOMEDSImpl_AttributePythonObject.cxx SALOMEDSImpl_AttributeReal.cxx SALOMEDSImpl_AttributeInteger.cxx SALOMEDSImpl_AttributeUserID.cxx SALOMEDSImpl_AttributeTreeNode.cxx SALOMEDSImpl_AttributeName.cxx SALOMEDSImpl_AttributeComment.cxx SALOMEDSImpl_AttributeReference.cxx SALOMEDSImpl_AttributeParameter.cxx SALOMEDSImpl_AttributeString.cxx SALOMEDSImpl_ChildNodeIterator.cxx SALOMEDSImpl_UseCaseBuilder.cxx SALOMEDSImpl_UseCaseIterator.cxx SALOMEDSImpl_SComponentIterator.cxx SALOMEDSImpl_StudyBuilder.cxx SALOMEDSImpl_Study.cxx SALOMEDSImpl_StudyManager.cxx SALOMEDSImpl_IParameters.cxx SALOMEDSImpl_TMPFile.cxx SALOMEDSImpl_GenericVariable.cxx SALOMEDSImpl_ScalarVariable.cxx SALOMEDSImpl_AttributeComment.hxx SALOMEDSImpl_AttributeDrawable.hxx SALOMEDSImpl_AttributeExpandable.hxx SALOMEDSImpl_AttributeExternalFileDef.hxx SALOMEDSImpl_AttributeFileType.hxx SALOMEDSImpl_AttributeFlags.hxx SALOMEDSImpl_AttributeGraphic.hxx SALOMEDSImpl_AttributeInteger.hxx SALOMEDSImpl_AttributeIOR.hxx SALOMEDSImpl_AttributeLocalID.hxx SALOMEDSImpl_AttributeName.hxx SALOMEDSImpl_AttributeOpened.hxx SALOMEDSImpl_AttributePersistentRef.hxx SALOMEDSImpl_AttributePixMap.hxx SALOMEDSImpl_AttributePythonObject.hxx SALOMEDSImpl_AttributeReal.hxx SALOMEDSImpl_AttributeReference.hxx SALOMEDSImpl_AttributeSelectable.hxx SALOMEDSImpl_AttributeSequenceOfInteger.hxx SALOMEDSImpl_AttributeSequenceOfReal.hxx SALOMEDSImpl_Attributes.hxx SALOMEDSImpl_AttributeStudyProperties.hxx SALOMEDSImpl_AttributeTable.hxx SALOMEDSImpl_AttributeTableOfInteger.hxx SALOMEDSImpl_AttributeTableOfReal.hxx SALOMEDSImpl_AttributeTableOfString.hxx SALOMEDSImpl_AttributeTarget.hxx SALOMEDSImpl_AttributeTextColor.hxx SALOMEDSImpl_AttributeTextHighlightColor.hxx SALOMEDSImpl_AttributeTreeNode.hxx SALOMEDSImpl_AttributeUserID.hxx SALOMEDSImpl_AttributeParameter.hxx SALOMEDSImpl_AttributeString.hxx SALOMEDSImpl_Callback.hxx SALOMEDSImpl_ChildIterator.hxx SALOMEDSImpl_ChildNodeIterator.hxx SALOMEDSImpl_Defines.hxx SALOMEDSImpl_Driver.hxx SALOMEDSImpl_GenericAttribute.hxx SALOMEDSImpl_SComponent.hxx SALOMEDSImpl_SComponentIterator.hxx SALOMEDSImpl_SObject.hxx SALOMEDSImpl_StudyBuilder.hxx SALOMEDSImpl_StudyHandle.hxx SALOMEDSImpl_Study.hxx SALOMEDSImpl_StudyManager.hxx SALOMEDSImpl_Tool.hxx SALOMEDSImpl_UseCaseBuilder.hxx SALOMEDSImpl_UseCaseIterator.hxx SALOMEDSImpl_GenericVariable.hxx SALOMEDSImpl_ScalarVariable.hxx ) ADD_LIBRARY(SalomeDSImpl SHARED ${SalomeDSImpl_SOURCES}) SET_TARGET_PROPERTIES(SalomeDSImpl PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}") TARGET_LINK_LIBRARIES(SalomeDSImpl SALOMELocalTrace ${COMMON_LIBS} ${OMNIORB_LIBS} ${PLATFORM_LIBS}) INSTALL(TARGETS SalomeDSImpl DESTINATION ${KERNEL_salomelib_LIBS}) ADD_EXECUTABLE(testDS testDS.cxx) SET_TARGET_PROPERTIES(testDS PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}") TARGET_LINK_LIBRARIES(testDS SalomeDSImpl ${COMMON_LIBS} ${OMNIORB_LIBS} ${PLATFORM_LIBS}) INSTALL(TARGETS testDS DESTINATION ${KERNEL_salomebin_BINS}) FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx") SET(NOINST_HEADERS_HXX SALOMEDSImpl_Tool.hxx SALOMEDSImpl_StudyHandle.hxx ) FOREACH(HEADER ${NOINST_HEADERS_HXX}) LIST(REMOVE_ITEM COMMON_HEADERS_HXX ${CMAKE_CURRENT_SOURCE_DIR}/${HEADER}) ENDFOREACH(HEADER ${NOINST_HEADERS_HXX}) INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${KERNEL_salomeinclude_HEADERS})