2014-02-18 12:44:41 +06:00
|
|
|
# Copyright (C) 2012-2014 CEA/DEN, EDF R&D, OPEN CASCADE
|
2013-10-02 19:13:33 +06: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 12:44:41 +06:00
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
2013-10-02 19:13:33 +06: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
|
|
|
|
#
|
|
|
|
|
|
|
|
IF(SALOME_BUILD_TESTS)
|
|
|
|
ADD_SUBDIRECTORY(tests)
|
|
|
|
ENDIF(SALOME_BUILD_TESTS)
|
|
|
|
|
|
|
|
# --- options ---
|
|
|
|
|
|
|
|
# additional include directories
|
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
${PTHREAD_INCLUDE_DIR}
|
|
|
|
${LIBXML2_INCLUDE_DIR}
|
|
|
|
${CAS_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
# additional preprocessor / compiler flags
|
|
|
|
ADD_DEFINITIONS(
|
|
|
|
${LIBXML2_DEFINITIONS}
|
|
|
|
${CAS_DEFINITIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
# libraries to link to
|
|
|
|
SET(_link_LIBRARIES
|
|
|
|
${PTHREAD_LIBRARIES}
|
|
|
|
${LIBXML2_LIBRARIES}
|
2013-10-17 13:24:33 +06:00
|
|
|
${CAS_TKBRep} ${CAS_TKTopAlgo} ${CAS_TKG2d}
|
2013-10-02 19:13:33 +06:00
|
|
|
)
|
|
|
|
|
|
|
|
# --- headers ---
|
|
|
|
|
|
|
|
SET(XAO_HEADERS
|
2013-10-17 13:24:33 +06:00
|
|
|
XAO.hxx
|
2013-10-02 19:13:33 +06:00
|
|
|
XAO_BooleanField.hxx
|
|
|
|
XAO_BooleanStep.hxx
|
|
|
|
XAO_BrepGeometry.hxx
|
|
|
|
XAO_DoubleField.hxx
|
|
|
|
XAO_DoubleStep.hxx
|
|
|
|
XAO_Exception.hxx
|
|
|
|
XAO_Field.hxx
|
|
|
|
XAO_GeometricElement.hxx
|
|
|
|
XAO_Geometry.hxx
|
|
|
|
XAO_Group.hxx
|
|
|
|
XAO_IntegerField.hxx
|
|
|
|
XAO_IntegerStep.hxx
|
|
|
|
XAO_Step.hxx
|
|
|
|
XAO_StringField.hxx
|
|
|
|
XAO_StringStep.hxx
|
|
|
|
XAO_Xao.hxx
|
|
|
|
XAO_XaoExporter.hxx
|
|
|
|
XAO_XaoUtils.hxx
|
|
|
|
)
|
|
|
|
|
|
|
|
# --- sources ---
|
|
|
|
|
|
|
|
SET(XAO_SOURCES
|
|
|
|
XAO_BooleanField.cxx
|
|
|
|
XAO_BooleanStep.cxx
|
|
|
|
XAO_BrepGeometry.cxx
|
|
|
|
XAO_DoubleField.cxx
|
|
|
|
XAO_DoubleStep.cxx
|
|
|
|
XAO_Field.cxx
|
|
|
|
XAO_GeometricElement.cxx
|
|
|
|
XAO_Geometry.cxx
|
|
|
|
XAO_Group.cxx
|
|
|
|
XAO_IntegerField.cxx
|
|
|
|
XAO_IntegerStep.cxx
|
|
|
|
XAO_Step.cxx
|
|
|
|
XAO_StringField.cxx
|
|
|
|
XAO_StringStep.cxx
|
|
|
|
XAO_Xao.cxx
|
|
|
|
XAO_XaoExporter.cxx
|
|
|
|
XAO_XaoUtils.cxx
|
|
|
|
)
|
|
|
|
|
|
|
|
# --- rules ---
|
|
|
|
|
|
|
|
ADD_LIBRARY(XAO ${XAO_SOURCES})
|
|
|
|
TARGET_LINK_LIBRARIES(XAO ${_link_LIBRARIES})
|
|
|
|
INSTALL(TARGETS XAO EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
|
|
|
|
|
|
|
|
INSTALL(FILES ${XAO_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
|