X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FCMakeLists.txt;h=554b8c03a56b0d03c8040699d627ca1f5043565b;hb=b625a28efae6fabb8606080db03a24d7fefe0215;hp=c5cf96007803720c5cccf9fd8b732cb6eda87fe8;hpb=35a88fdd724349275bbff32b9596a44e7cd422e2;p=modules%2Fshaper.git diff --git a/src/Model/CMakeLists.txt b/src/Model/CMakeLists.txt index c5cf96007..554b8c03a 100644 --- a/src/Model/CMakeLists.txt +++ b/src/Model/CMakeLists.txt @@ -1,84 +1,132 @@ +# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# +# 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, or (at your option) any later version. +# +# 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(Common) SET(PROJECT_HEADERS Model.h Model_Application.h Model_Document.h + Model_Objects.h Model_Session.h Model_Data.h Model_AttributeDouble.h + Model_AttributeDoubleArray.h Model_AttributeDocRef.h Model_AttributeReference.h Model_AttributeRefAttr.h Model_AttributeRefList.h + Model_AttributeRefAttrList.h Model_AttributeBoolean.h + Model_AttributeIntArray.h Model_AttributeString.h + Model_AttributeStringArray.h Model_AttributeInteger.h Model_AttributeSelection.h Model_AttributeSelectionList.h + Model_AttributeTables.h + Model_AttributeValidator.h + Model_BodyBuilder.h Model_Events.h - Model_Update.h - Model_Validator.h + Model_Expression.h + Model_FeatureValidator.h + Model_FiltersFactory.h Model_ResultBody.h Model_ResultConstruction.h Model_ResultPart.h + Model_ResultField.h Model_ResultGroup.h - Model_FeatureValidator.h + Model_ResultParameter.h + Model_Update.h + Model_Validator.h ) SET(PROJECT_SOURCES Model_Application.cpp Model_Document.cpp + Model_Objects.cpp Model_Session.cpp Model_Data.cpp Model_AttributeDouble.cpp + Model_AttributeDoubleArray.cpp Model_AttributeDocRef.cpp Model_AttributeReference.cpp Model_AttributeRefAttr.cpp Model_AttributeRefList.cpp + Model_AttributeRefAttrList.cpp Model_AttributeBoolean.cpp + Model_AttributeIntArray.cpp Model_AttributeString.cpp + Model_AttributeStringArray.cpp Model_AttributeInteger.cpp Model_AttributeSelection.cpp Model_AttributeSelectionList.cpp + Model_AttributeTables.cpp + Model_AttributeValidator.cpp + Model_BodyBuilder.cpp Model_Events.cpp - Model_Update.cpp - Model_Validator.cpp + Model_Expression.cpp + Model_FeatureValidator.cpp + Model_FiltersFactory.cpp Model_ResultBody.cpp Model_ResultConstruction.cpp Model_ResultPart.cpp + Model_ResultField.cpp Model_ResultGroup.cpp - Model_FeatureValidator.cpp + Model_ResultParameter.cpp + Model_Update.cpp + Model_Validator.cpp ) SET(PROJECT_LIBRARIES - ModelAPI - Events - Config + ModelAPI + Events + Config + Selector GeomData GeomAPI GeomAlgoAPI - ${CAS_OCAF} - ${CAS_TKCAF} - ${CAS_SHAPE} - ${CAS_TKBO} + ModelGeomAlgo + ${OpenCASCADE_ApplicationFramework_LIBRARIES} ) - - - -ADD_DEFINITIONS(-DMODEL_EXPORTS ${CAS_DEFINITIONS}) -ADD_LIBRARY(Model MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS}) -TARGET_LINK_LIBRARIES(Model ${PROJECT_LIBRARIES}) - -INCLUDE_DIRECTORIES( +SET(PROJECT_INCLUDES ../ModelAPI ../Events ../Config + ../Selector ../GeomData ../GeomDataAPI ../GeomAlgoAPI ../GeomAPI - ${CAS_INCLUDE_DIRS} + ../ModelGeomAlgo + ${OpenCASCADE_INCLUDE_DIR} ) -INSTALL(TARGETS Model DESTINATION bin) + +IF(TKTInspector) + ADD_DEFINITIONS(-DTINSPECTOR) +ENDIF() + +ADD_DEFINITIONS(-DMODEL_EXPORTS ${OpenCASCADE_DEFINITIONS}) +ADD_LIBRARY(Model SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) +TARGET_LINK_LIBRARIES(Model ${PROJECT_LIBRARIES}) + +INCLUDE_DIRECTORIES(${PROJECT_INCLUDES}) + +INSTALL(TARGETS Model DESTINATION ${SHAPER_INSTALL_BIN})