[cgma-dev] r3200 - in cgm/trunk/geom: . OCC

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Mon Oct 12 14:06:46 CDT 2009


Author: kraftche
Date: 2009-10-12 14:06:45 -0500 (Mon, 12 Oct 2009)
New Revision: 3200

Added:
   cgm/trunk/geom/OCC/CMakeLists.txt
Modified:
   cgm/trunk/geom/CMakeLists.txt
Log:
Add CMake build support for OCC port

Modified: cgm/trunk/geom/CMakeLists.txt
===================================================================
--- cgm/trunk/geom/CMakeLists.txt	2009-10-12 19:06:06 UTC (rev 3199)
+++ cgm/trunk/geom/CMakeLists.txt	2009-10-12 19:06:45 UTC (rev 3200)
@@ -17,6 +17,12 @@
   SUBDIRS(granite)
 ENDIF(CGM_GRANITE)
 
+# build cgm with OpenCASCADE support, default to on
+OPTION(CGM_OCC "Build CGM with OpenCASCADE support" ON)
+IF(CGM_OCC)
+  SUBDIRS(OCC)
+ENDIF(CGM_OCC)
+
 INCLUDE(${cubit_geom_SOURCE_DIR}/../util/UseUtil.cmake)
 
 SET(GEOM_SRCS

Added: cgm/trunk/geom/OCC/CMakeLists.txt
===================================================================
--- cgm/trunk/geom/OCC/CMakeLists.txt	                        (rev 0)
+++ cgm/trunk/geom/OCC/CMakeLists.txt	2009-10-12 19:06:45 UTC (rev 3200)
@@ -0,0 +1,80 @@
+PROJECT(cubit_occ)
+
+SET(OCC_SRCS
+    OCCShapeAttributeSet.cpp
+    OCCAttribSet.cpp
+    OCCBody.cpp
+    OCCCoEdge.cpp
+    OCCCoFace.cpp
+    OCCCurve.cpp
+    OCCLoop.cpp
+    OCCLump.cpp
+    OCCModifyEngine.cpp
+    OCCPoint.cpp
+    OCCQueryEngine.cpp
+    OCCShell.cpp
+    OCCSurface.cpp
+    OCCDrawTool.cpp
+   )
+
+SET(OCC_HDRS
+    OCCShapeAttributeSet.hpp
+    OCCAttribSet.hpp
+    OCCBody.hpp
+    OCCCoEdge.hpp
+    OCCCoFace.hpp
+    OCCCurve.hpp
+    OCCGeometryCreator.hpp
+    OCCLoop.hpp
+    OCCLump.hpp
+    OCCModifyEngine.hpp
+    OCCPoint.hpp
+    OCCQueryEngine.hpp
+    OCCShell.hpp
+    OCCSurface.hpp
+    OCCDrawTool.hpp
+    )
+
+SET(OCC_LIBS
+     TKMath
+     TKXSBase
+     TKernel
+     TKShHealing
+     TKBRep
+     TKG3d
+     TKBO
+     TKFeat
+     TKFillet
+     TKG2d
+     TKOffset
+     TKBool
+     TKGeomAlgo
+     TKGeomBase
+     TKPrim
+     TKTopAlgo
+     TKHLR
+     TKIGES
+     TKMesh
+     TKPrim
+     TKSTEP209
+     TKSTEPAttr
+     TKSTEPBase
+     TKSTEP
+     TKSTL
+     TKTopAlgo
+     TKXSBase
+     TKLCAF
+     TKBinL
+    )
+
+SET(OCC_DIR "" CACHE PATH "Location where OpenCASCADE in installed")
+FIND_LIBRARY( OCC_LIBRARY TKernel ${OCC_DIR}/lib )
+FIND_PATH( OCC_INCLUDES Standard_Version.hxx ${OCC_DIR}/inc )
+
+if(COMMAND cmake_policy)
+  cmake_policy(SET CMP0003 OLD)
+endif()
+ADD_LIBRARY( cubit_OCC ${OCC_SRCS} ${OCC_HDRS} )
+INCLUDE_DIRECTORIES( ${OCC_INCLUDES} )
+TARGET_LINK_LIBRARIES( cubit_OCC ${OCC_LIBRARY} ${OCC_LIBS} )
+SET_SOURCE_FILES_PROPERTIES( ${OCC_SRCS} COMPILE_FLAGS "-DHAVE_IOSTREAM -DHAVE_IOMANIP -DHAVE_FSTREAM -DHAVE_LIMITS_H" )



More information about the cgma-dev mailing list