[cgma-dev] r5395 - in cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib: . CMakeModules incl src

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Mon Feb 13 10:25:55 CST 2012


Author: janehu
Date: 2012-02-13 10:25:55 -0600 (Mon, 13 Feb 2012)
New Revision: 5395

Added:
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/CMakeLists.txt
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/CMakeModules/FindACIS.cmake
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/Makefile
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/Makefile.Linux
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/Makefile.SunOS
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/incl/attrib_edge_parametric_length.h
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/incl/attrib_gtc.h
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/incl/attrib_gtc_export.h
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/incl/attrib_mark.h
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/incl/attrib_name.h
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/incl/gtcAttrib_exConst.h
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/src/attrib_edge_parametric_length.C
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/src/attrib_gtc.C
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/src/attrib_mark.C
   cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/src/attrib_name.C
Log:
Move ACIS files to ACIS_SRC.

Added: cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/CMakeLists.txt
===================================================================
--- cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/CMakeLists.txt	                        (rev 0)
+++ cgm/branches/cubit13.1/geom/ACIS_SRC/gtcAttrib/CMakeLists.txt	2012-02-13 16:25:55 UTC (rev 5395)
@@ -0,0 +1,134 @@
+
+PROJECT(gtcAttrib)
+IF(IGTO_BUILD)
+ 
+SET(gtcAttrib_MAJOR_VERSION 1
+       	CACHE STRING "gtcAttrib Major Library Version" FORCE)
+SET(gtcAttrib_MINOR_VERSION 0
+       	CACHE STRING "gtcAttrib Minor Library Version" FORCE)
+SET(gtcAttrib_VERSION 
+      "${gtcAttrib_MAJOR_VERSION}.${gtcAttrib_MINOR_VERSION}"
+         CACHE STRING "gtcAttrib Library Version" FORCE)
+#SET (gtcAttrib_VERSION 1.0 CACHE STRING "Library Version" FORCE)
+
+# Disallow in-source build
+STRING(COMPARE EQUAL "${gtcAttrib_SOURCE_DIR}"
+ "${gtcAttrib_BINARY_DIR}" INSOURCE)
+IF(INSOURCE)
+  MESSAGE(SEND_ERROR "Build directory ${gtcAttrib_BINARY_DIR}")
+  MESSAGE(SEND_ERROR "Source directory ${gtcAttrib_SOURCE_DIR}")
+  MESSAGE(FATAL_ERROR "gtcAttrib requires an out of source Build. Please create a separate binary directory and run CMake there.")
+ENDIF(INSOURCE)
+
+# set our CMAKE_MODULE_PATH to include the one specific to this project
+SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules )
+
+SET (GTC_ATTRIB_SRCS
+     src/attrib_edge_parametric_length.C 
+     src/attrib_gtc.C
+     src/attrib_mark.C
+     src/attrib_name.C
+     )
+
+# check to see if we have the standard namespace
+INCLUDE (TestForSTDNamespace)
+IF (CMAKE_STD_NAMESPACE)
+   ADD_DEFINITIONS(-DHAVE_STD)
+ENDIF (CMAKE_STD_NAMESPACE)
+
+# Find the acis libraries
+
+INCLUDE (FindACIS)
+FindACIS(17)
+
+IF (ACIS_FOUND)
+  # add acis includes to current project
+  INCLUDE_DIRECTORIES(${ACIS_INCLUDE_DIR} ${gtcAttrib_SOURCE_DIR}/incl)


More information about the cgma-dev mailing list