X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FCMakeLists.txt;h=24c17e62d685f5b36d7defc685334f5afc6feb1f;hb=061a63480f6840b6d945f7744b3b972e2d4cb25d;hp=509d8ac2d1f190f1b71e85a7df9c1eb0926ad1b1;hpb=de0f49686ec6655ddc5816c8fa5383964662aec4;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/CMakeLists.txt b/src/GeomAlgoAPI/CMakeLists.txt index 509d8ac2d..24c17e62d 100644 --- a/src/GeomAlgoAPI/CMakeLists.txt +++ b/src/GeomAlgoAPI/CMakeLists.txt @@ -1,39 +1,117 @@ +## 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}) 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 ) 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 +) + +SET(PROJECT_LIBRARIES + GeomAPI + GeomAlgoImpl + ModelAPI + ${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} ) 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 ${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 ) SET(SWIG_LINK_LIBRARIES + GeomAPI GeomAlgoAPI + GeomAlgoImpl ${PYTHON_LIBRARIES} )