Salome HOME
Issue #2504: Dimension presentations were added
[modules/shaper.git] / src / GeomAPI / CMakeLists.txt
index ad741d302d83c67fe65adae20fc93ff949e96e45..d42c54c57ebb8ee1f7634b9789bc62684a62261e 100644 (file)
@@ -1,11 +1,32 @@
+## Copyright (C) 2014-2017  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<mailto:webmaster.salome@opencascade.com>
+##
+
 FIND_PACKAGE(SWIG REQUIRED)
-INCLUDE(FindCAS)
 
 INCLUDE(${SWIG_USE_FILE})
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
 
 SET(PROJECT_HEADERS
     GeomAPI.h
+    GeomAPI_Circ.h
+    GeomAPI_Circ2d.h
     GeomAPI_Interface.h
     GeomAPI_XY.h
     GeomAPI_XYZ.h
@@ -14,11 +35,37 @@ SET(PROJECT_HEADERS
     GeomAPI_Lin.h
     GeomAPI_Lin2d.h
     GeomAPI_Dir.h
+    GeomAPI_Dir2d.h
     GeomAPI_Pln.h
     GeomAPI_Shape.h
+    GeomAPI_ShapeExplorer.h
+    GeomAPI_ShapeIterator.h
+    GeomAPI_Edge.h
+    GeomAPI_Face.h
+    GeomAPI_PlanarEdges.h
+    GeomAPI_AISObject.h
+    GeomAPI_IPresentable.h
+    GeomAPI_Curve.h
+    GeomAPI_DataMapOfShapeMapOfShapes.h
+    GeomAPI_DataMapOfShapeShape.h
+    GeomAPI_ICustomPrs.h
+    GeomAPI_Vertex.h
+    GeomAPI_Ax1.h
+    GeomAPI_Ax2.h
+    GeomAPI_Ax3.h
+    GeomAPI_Trsf.h
+    GeomAPI_Angle2d.h
+    GeomAPI_Angle.h
+    GeomAPI_Wire.h
+    GeomAPI_Ellipse.h
+    GeomAPI_Ellipse2d.h
+    GeomAPI_Tools.h
+       GeomAPI_IScreenParams.h
 )
 
 SET(PROJECT_SOURCES
+    GeomAPI_Circ.cpp
+    GeomAPI_Circ2d.cpp
     GeomAPI_Interface.cpp
     GeomAPI_XY.cpp
     GeomAPI_XYZ.cpp
@@ -27,14 +74,46 @@ SET(PROJECT_SOURCES
     GeomAPI_Lin.cpp
     GeomAPI_Lin2d.cpp
     GeomAPI_Dir.cpp
+    GeomAPI_Dir2d.cpp
     GeomAPI_Pln.cpp
     GeomAPI_Shape.cpp
+    GeomAPI_ShapeExplorer.cpp
+    GeomAPI_ShapeIterator.cpp
+    GeomAPI_Edge.cpp
+    GeomAPI_Face.cpp
+    GeomAPI_PlanarEdges.cpp
+    GeomAPI_AISObject.cpp
+    GeomAPI_Curve.cpp
+    GeomAPI_DataMapOfShapeMapOfShapes.cpp
+    GeomAPI_DataMapOfShapeShape.cpp
+    GeomAPI_Vertex.cpp
+    GeomAPI_ICustomPrs.cpp
+    GeomAPI_Ax1.cpp
+    GeomAPI_Ax2.cpp
+    GeomAPI_Ax3.cpp
+    GeomAPI_IPresentable.cpp
+    GeomAPI_Trsf.cpp
+    GeomAPI_Angle2d.cpp
+    GeomAPI_Angle.cpp
+    GeomAPI_Wire.cpp
+    GeomAPI_Ellipse.cpp
+    GeomAPI_Ellipse2d.cpp
+    GeomAPI_Tools.cpp
+)
+
+SET(PROJECT_LIBRARIES
+    ${CAS_KERNEL}
+    ${CAS_MODELER}
+    ${CAS_VIEWER}
+    ${CAS_SHAPE}
+    ${CAS_TKTopAlgo}
+    ${CAS_TKBO}
 )
 
 ADD_DEFINITIONS(-DGEOMAPI_EXPORTS ${CAS_DEFINITIONS})
 ADD_LIBRARY(GeomAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
 
-SET(CMAKE_SWIG_FLAGS "")
+SET(CMAKE_SWIG_FLAGS -threads -Wall)
 
 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES CPLUSPLUS ON)
 SET_SOURCE_FILES_PROPERTIES(GeomAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow")
@@ -43,7 +122,7 @@ INCLUDE_DIRECTORIES(
   ${CAS_INCLUDE_DIRS}
 )
 
-TARGET_LINK_LIBRARIES(GeomAPI ${PROJECT_LIBRARIES} ${CAS_KERNEL} ${CAS_MODELER})
+TARGET_LINK_LIBRARIES(GeomAPI ${PROJECT_LIBRARIES})
 
 SET(SWIG_SCRIPTS
   ${CMAKE_CURRENT_BINARY_DIR}/GeomAPI.py
@@ -61,6 +140,6 @@ IF(WIN32)
   SET_TARGET_PROPERTIES(_GeomAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAPI_d)
 ENDIF(WIN32)
 
-INSTALL(TARGETS _GeomAPI DESTINATION swig)
-INSTALL(TARGETS GeomAPI DESTINATION bin)
-INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig)
+INSTALL(TARGETS _GeomAPI DESTINATION ${SHAPER_INSTALL_SWIG})
+INSTALL(TARGETS GeomAPI DESTINATION ${SHAPER_INSTALL_BIN})
+INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG})