2016-03-15 15:26:56 +03:00
|
|
|
# Copyright (C) 2012-2016 CEA/DEN, EDF R&D, OPEN CASCADE
|
2013-09-10 12:47:38 +00:00
|
|
|
#
|
|
|
|
# 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
|
2014-02-18 10:44:41 +04:00
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
2013-09-10 12:47:38 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
|
|
|
# --- options ---
|
|
|
|
|
|
|
|
# additional include directories
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${CAS_INCLUDE_DIRS}
|
2013-09-17 12:52:41 +00:00
|
|
|
${PTHREAD_INCLUDE_DIR}
|
2013-09-10 12:47:38 +00:00
|
|
|
${KERNEL_INCLUDE_DIRS}
|
|
|
|
${PROJECT_SOURCE_DIR}/src/SKETCHER
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
# additional preprocessor / compiler flags
|
|
|
|
ADD_DEFINITIONS(
|
|
|
|
${CAS_DEFINITIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
# libraries to link to
|
|
|
|
SET(_link_LIBRARIES
|
|
|
|
${CAS_OCAFVIS}
|
2013-09-17 12:52:41 +00:00
|
|
|
${CAS_TKLCAF}
|
|
|
|
${CAS_TKCDF}
|
|
|
|
${CAS_TKG3d}
|
2017-03-27 15:38:19 +03:00
|
|
|
${CAS_TKStdL}
|
2013-09-10 12:47:38 +00:00
|
|
|
${KERNEL_SALOMELocalTrace}
|
2013-10-17 07:24:33 +00:00
|
|
|
${KERNEL_OpUtil}
|
2013-09-10 12:47:38 +00:00
|
|
|
GEOMSketcher
|
|
|
|
)
|
|
|
|
|
2016-07-29 11:30:51 +03:00
|
|
|
IF(CAS_VERSION_STR VERSION_GREATER "7.0.0")
|
|
|
|
LIST(APPEND _link_LIBRARIES ${CAS_TKStd} ${CAS_TKBin})
|
|
|
|
ENDIF()
|
|
|
|
|
2013-09-10 12:47:38 +00:00
|
|
|
# --- headers ---
|
|
|
|
|
|
|
|
SET(GEOM_HEADERS
|
|
|
|
GEOM_Application.hxx
|
|
|
|
GEOM_Engine.hxx
|
|
|
|
GEOM_Function.hxx
|
|
|
|
GEOM_Object.hxx
|
2013-09-30 11:45:32 +00:00
|
|
|
GEOM_Field.hxx
|
2013-09-10 12:47:38 +00:00
|
|
|
GEOM_BaseDriver.hxx
|
|
|
|
GEOM_SubShapeDriver.hxx
|
|
|
|
GEOM_IOperations.hxx
|
|
|
|
GEOM_ISubShape.hxx
|
|
|
|
GEOM_Solver.hxx
|
|
|
|
GEOM_PythonDump.hxx
|
|
|
|
GEOM_DataMapOfAsciiStringTransient.hxx
|
2014-06-04 15:17:38 +04:00
|
|
|
GEOM_BaseObject.hxx
|
2013-09-10 12:47:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# --- sources ---
|
|
|
|
|
|
|
|
SET(GEOM_SOURCES
|
|
|
|
GEOM_Application.cxx
|
|
|
|
GEOM_Engine.cxx
|
|
|
|
GEOM_Function.cxx
|
2013-09-30 11:45:32 +00:00
|
|
|
GEOM_BaseObject.cxx
|
2013-09-10 12:47:38 +00:00
|
|
|
GEOM_Object.cxx
|
2013-09-30 11:45:32 +00:00
|
|
|
GEOM_Field.cxx
|
2013-09-10 12:47:38 +00:00
|
|
|
GEOM_IOperations.cxx
|
|
|
|
GEOM_Solver.cxx
|
|
|
|
GEOM_BaseDriver.cxx
|
|
|
|
GEOM_SubShapeDriver.cxx
|
|
|
|
GEOM_PythonDump.cxx
|
|
|
|
)
|
|
|
|
|
|
|
|
# --- rules ---
|
|
|
|
|
|
|
|
ADD_LIBRARY(GEOMbasic ${GEOM_SOURCES})
|
|
|
|
TARGET_LINK_LIBRARIES(GEOMbasic ${_link_LIBRARIES})
|
|
|
|
INSTALL(TARGETS GEOMbasic EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
|
|
|
|
|
|
|
|
INSTALL(FILES ${GEOM_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
|
|
|
|
|
|
|
|
|