X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FCMakeLists.txt;h=a7b04409ca5cf0a85266da861cbd8fe660ddbcd4;hb=5b6031b015602aa07f5a6fc668c13ac3faf7a8a9;hp=c05fa5a2511e4f9e76d671ecb6c292551fffee0d;hpb=e0599afe13a8f2be4fe593e6d50b23a23b0a6c81;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/CMakeLists.txt b/src/GeomAlgoAPI/CMakeLists.txt index c05fa5a25..a7b04409c 100644 --- a/src/GeomAlgoAPI/CMakeLists.txt +++ b/src/GeomAlgoAPI/CMakeLists.txt @@ -1,34 +1,138 @@ +## Copyright (C) 2014-20xx CEA/DEN, EDF R&D + FIND_PACKAGE(SWIG REQUIRED) -INCLUDE(FindCAS) INCLUDE(${SWIG_USE_FILE}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) +INCLUDE(UnitTest) SET(PROJECT_HEADERS GeomAlgoAPI.h + GeomAlgoAPI_Tools.h GeomAlgoAPI_CompoundBuilder.h GeomAlgoAPI_FaceBuilder.h + GeomAlgoAPI_EdgeBuilder.h + GeomAlgoAPI_PointBuilder.h + GeomAlgoAPI_SketchBuilder.h + GeomAlgoAPI_Prism.h + GeomAlgoAPI_Revolution.h + GeomAlgoAPI_Boolean.h + GeomAlgoAPI_Rotation.h + GeomAlgoAPI_Translation.h + GeomAlgoAPI_MakeShape.h + GeomAlgoAPI_MakeShapeCustom.h + GeomAlgoAPI_MakeShapeList.h + GeomAlgoAPI_MakeSweep.h + GeomAlgoAPI_DFLoader.h + GeomAlgoAPI_Placement.h + GeomAlgoAPI_BREPImport.h + GeomAlgoAPI_STEPImport.h + GeomAlgoAPI_IGESImport.h + GeomAlgoAPI_BREPExport.h + GeomAlgoAPI_STEPExport.h + GeomAlgoAPI_IGESExport.h + GeomAlgoAPI_Transform.h + GeomAlgoAPI_ShapeTools.h + GeomAlgoAPI_Partition.h + GeomAlgoAPI_PaveFiller.h + GeomAlgoAPI_Intersection.h + GeomAlgoAPI_Pipe.h + GeomAlgoAPI_WireBuilder.h + GeomAlgoAPI_Sewing.h + GeomAlgoAPI_ShapeBuilder.h + GeomAlgoAPI_ShapeAPI.h + GeomAlgoAPI_Exception.h + GeomAlgoAPI_Box.h + GeomAlgoAPI_XAOExport.h + GeomAlgoAPI_XAOImport.h + GeomAlgoAPI_Copy.h + GeomAlgoAPI_ConeSegment.h + GeomAlgoAPI_Symmetry.h ) SET(PROJECT_SOURCES + GeomAlgoAPI_Tools.cpp GeomAlgoAPI_CompoundBuilder.cpp GeomAlgoAPI_FaceBuilder.cpp + GeomAlgoAPI_EdgeBuilder.cpp + GeomAlgoAPI_PointBuilder.cpp + GeomAlgoAPI_SketchBuilder.cpp + GeomAlgoAPI_Prism.cpp + GeomAlgoAPI_Revolution.cpp + GeomAlgoAPI_Boolean.cpp + GeomAlgoAPI_Rotation.cpp + GeomAlgoAPI_Translation.cpp + GeomAlgoAPI_MakeShape.cpp + GeomAlgoAPI_MakeShapeCustom.cpp + GeomAlgoAPI_MakeShapeList.cpp + GeomAlgoAPI_MakeSweep.cpp + GeomAlgoAPI_DFLoader.cpp + GeomAlgoAPI_Placement.cpp + GeomAlgoAPI_BREPImport.cpp + GeomAlgoAPI_STEPImport.cpp + GeomAlgoAPI_IGESImport.cpp + GeomAlgoAPI_BREPExport.cpp + GeomAlgoAPI_STEPExport.cpp + GeomAlgoAPI_IGESExport.cpp + GeomAlgoAPI_Transform.cpp + GeomAlgoAPI_ShapeTools.cpp + GeomAlgoAPI_Partition.cpp + GeomAlgoAPI_PaveFiller.cpp + GeomAlgoAPI_Intersection.cpp + GeomAlgoAPI_Pipe.cpp + GeomAlgoAPI_WireBuilder.cpp + GeomAlgoAPI_Sewing.cpp + GeomAlgoAPI_ShapeBuilder.cpp + GeomAlgoAPI_ShapeAPI.cpp + GeomAlgoAPI_Exception.cpp + GeomAlgoAPI_Box.cpp + GeomAlgoAPI_XAOExport.cpp + GeomAlgoAPI_XAOImport.cpp + GeomAlgoAPI_Copy.cpp + GeomAlgoAPI_ConeSegment.cpp + GeomAlgoAPI_Symmetry.cpp +) + +SET(PROJECT_LIBRARIES + GeomAPI + GeomAlgoImpl + ModelAPI + XAO + ${CAS_OCAF} + ${CAS_SHAPE} + ${CAS_TKBO} + ${CAS_TKBool} + ${CAS_TKBRep} + ${CAS_TKCAF} + ${CAS_TKCAF} + ${CAS_TKLCAF} + ${CAS_TKPrim} + ${CAS_TKSTEP} + ${CAS_TKSTEPBase} + ${CAS_TKIGES} + ${CAS_TKTopAlgo} + ${CAS_TKXSBase} + ${CAS_TKOffset} + ${CAS_TKShHealing} ) ADD_DEFINITIONS(-DGEOMALGOAPI_EXPORTS ${CAS_DEFINITIONS}) ADD_LIBRARY(GeomAlgoAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) -SET(CMAKE_SWIG_FLAGS "") +SET(CMAKE_SWIG_FLAGS "-Wall") SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES CPLUSPLUS ON) SET_SOURCE_FILES_PROPERTIES(GeomAlgoAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow") INCLUDE_DIRECTORIES( ../GeomAPI + ../GeomAlgoImpl + ../ModelAPI + ../XAO ${CAS_INCLUDE_DIRS} ) -TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES} GeomAPI ${CAS_KERNEL} ${CAS_MODELER}) +TARGET_LINK_LIBRARIES(GeomAlgoAPI ${PROJECT_LIBRARIES}) SET(SWIG_SCRIPTS ${CMAKE_CURRENT_BINARY_DIR}/GeomAlgoAPI.py @@ -37,6 +141,7 @@ SET(SWIG_SCRIPTS SET(SWIG_LINK_LIBRARIES GeomAPI GeomAlgoAPI + GeomAlgoImpl ${PYTHON_LIBRARIES} ) @@ -47,6 +152,12 @@ IF(WIN32) SET_TARGET_PROPERTIES(_GeomAlgoAPI PROPERTIES DEBUG_OUTPUT_NAME _GeomAlgoAPI_d) ENDIF(WIN32) -INSTALL(TARGETS _GeomAlgoAPI DESTINATION swig) -INSTALL(TARGETS GeomAlgoAPI DESTINATION bin) -INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION swig) +INSTALL(TARGETS _GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_SWIG}) +INSTALL(TARGETS GeomAlgoAPI DESTINATION ${SHAPER_INSTALL_BIN}) +INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG}) + +ADD_UNIT_TESTS(TestAPI_Box.py + TestAPI_GDMLConeSegment.py + TestAPI_Symmetry.py + TestAPI_Translation.py) +