@@ -140,90 +140,46 @@ set_target_properties( Licensing PROPERTIES PREFIX "" )
140140
141141
142142#
143- # ACIS Python Module - Topology (ENTITY, BODY, FACE, etc.)
143+ # ACIS Python Module - Entity (ENTITY, BODY, FACE, etc.)
144144#
145145
146146# Set source files
147- set ( ACIS_SOURCES_Topology
148- src/acis_topology .h
149- src/acis_topology .cpp
150- ${PROJECT_BINARY_DIR} /acis_topology_export .h
147+ set ( ACIS_SOURCES_Entity
148+ src/acis_entity .h
149+ src/acis_entity .cpp
150+ ${PROJECT_BINARY_DIR} /acis_entity_export .h
151151 )
152152
153153# Generate Python module
154- add_library ( Topology SHARED ${ACIS_SOURCES_Topology } )
154+ add_library ( Entity SHARED ${ACIS_SOURCES_Entity } )
155155
156156# Generate export header file
157- generate_export_header( Topology
158- BASE_NAME acis_topology
157+ generate_export_header( Entity
158+ BASE_NAME acis_entity
159159 )
160160
161161# Set link targets
162- target_link_libraries ( Topology ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} )
162+ target_link_libraries ( Entity ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} )
163163
164164# Add the build location to the include directories
165- target_include_directories ( Topology PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
165+ target_include_directories ( Entity PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
166166
167167# Set required C++ standard
168- set_property ( TARGET Topology PROPERTY CXX_STANDARD 11 )
169- set_property ( TARGET Topology PROPERTY CXX_STANDARD_REQUIRED ON )
168+ set_property ( TARGET Entity PROPERTY CXX_STANDARD 11 )
169+ set_property ( TARGET Entity PROPERTY CXX_STANDARD_REQUIRED ON )
170170
171171# Add suffix to debug builds
172172if ( WIN32 )
173- set_target_properties ( Topology PROPERTIES DEBUG_POSTFIX "_d" )
173+ set_target_properties ( Entity PROPERTIES DEBUG_POSTFIX "_d" )
174174endif ()
175175
176176# On Windows, Python modules have .pyd filename extension
177177if ( WIN32 AND NOT CYGWIN )
178- set_target_properties ( Topology PROPERTIES SUFFIX ".pyd" )
178+ set_target_properties ( Entity PROPERTIES SUFFIX ".pyd" )
179179endif ()
180180
181181# This is only needed for the python case where a modulename.so is generated
182- set_target_properties ( Topology PROPERTIES PREFIX "" )
183-
184-
185- #
186- # ACIS Python Module - Geometry (SURFACE and its subclasses & surface and its subclasses)
187- #
188-
189- # Set source files
190- set ( ACIS_SOURCES_Geometry
191- src/acis_geometry.h
192- src/acis_geometry.cpp
193- ${PROJECT_BINARY_DIR} /acis_geometry_export.h
194- )
195-
196- # Generate Python module
197- add_library ( Geometry SHARED ${ACIS_SOURCES_Geometry} )
198-
199- # Generate export header file
200- generate_export_header(
201- Geometry
202- BASE_NAME acis_geometry
203- )
204-
205- # Set link targets
206- target_link_libraries ( Geometry ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Topology )
207-
208- # Add the build location to the include directories
209- target_include_directories ( Geometry PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
210-
211- # Set required C++ standard
212- set_property ( TARGET Geometry PROPERTY CXX_STANDARD 11 )
213- set_property ( TARGET Geometry PROPERTY CXX_STANDARD_REQUIRED ON )
214-
215- # Add suffix to debug builds
216- if ( WIN32 )
217- set_target_properties ( Geometry PROPERTIES DEBUG_POSTFIX "_d" )
218- endif ()
219-
220- # On Windows, Python modules have .pyd filename extension
221- if ( WIN32 AND NOT CYGWIN )
222- set_target_properties ( Geometry PROPERTIES SUFFIX ".pyd" )
223- endif ()
224-
225- # This is only needed for the python case where a modulename.so is generated
226- set_target_properties ( Geometry PROPERTIES PREFIX "" )
182+ set_target_properties ( Entity PROPERTIES PREFIX "" )
227183
228184
229185#
@@ -269,49 +225,6 @@ endif()
269225set_target_properties ( GeometricAtoms PROPERTIES PREFIX "" )
270226
271227
272- #
273- # ACIS Python Module - Geometric Operators (translate_transf, parallel, antiparallel, etc.)
274- #
275-
276- # Set source files
277- set ( ACIS_SOURCES_GeometricOperators
278- src/acis_geometric_operators.h
279- src/acis_geometric_operators.cpp
280- ${PROJECT_BINARY_DIR} /acis_geometric_operators_export.h
281- )
282-
283- # Generate Python module
284- add_library ( GeometricOperators SHARED ${ACIS_SOURCES_GeometricOperators} )
285-
286- # Generate export header file
287- generate_export_header( GeometricOperators
288- BASE_NAME acis_geometric_operators
289- )
290-
291- # Set link targets
292- target_link_libraries ( GeometricOperators ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} GeometricAtoms )
293-
294- # Add the build location to the include directories
295- target_include_directories ( GeometricOperators PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
296-
297- # Set required C++ standard
298- set_property ( TARGET GeometricOperators PROPERTY CXX_STANDARD 11 )
299- set_property ( TARGET GeometricOperators PROPERTY CXX_STANDARD_REQUIRED ON )
300-
301- # Add suffix to debug builds
302- if ( WIN32 )
303- set_target_properties ( GeometricOperators PROPERTIES DEBUG_POSTFIX "_d" )
304- endif ()
305-
306- # On Windows, Python modules have .pyd filename extension
307- if ( WIN32 AND NOT CYGWIN )
308- set_target_properties ( GeometricOperators PROPERTIES SUFFIX ".pyd" )
309- endif ()
310-
311- # This is only needed for the python case where a modulename.so is generated
312- set_target_properties ( GeometricOperators PROPERTIES PREFIX "" )
313-
314-
315228#
316229# ACIS Python Module - Save & Restore (FileInfo, etc.)
317230#
@@ -377,7 +290,7 @@ generate_export_header( Lists
377290 )
378291
379292# Set link targets
380- target_link_libraries ( Lists ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Topology )
293+ target_link_libraries ( Lists ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Entity )
381294
382295# Add the build location to the include directories
383296target_include_directories ( Lists PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
@@ -422,7 +335,7 @@ generate_export_header( Sweeping
422335 )
423336
424337# Set link targets. Note that Modeler has dependencies towards most helper modules.
425- target_link_libraries ( Sweeping ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Topology GeometricAtoms )
338+ target_link_libraries ( Sweeping ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Entity GeometricAtoms )
426339
427340# Add the build location to the include directories
428341target_include_directories ( Sweeping PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
@@ -467,7 +380,7 @@ generate_export_header( Query
467380 )
468381
469382# Set link targets. Note that Modeler has dependencies towards most helper modules.
470- target_link_libraries ( Query ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Topology GeometricAtoms Lists )
383+ target_link_libraries ( Query ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Entity GeometricAtoms Lists )
471384
472385# Add the build location to the include directories
473386target_include_directories ( Query PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
@@ -506,7 +419,7 @@ set( ACIS_SOURCES_Modeler
506419add_library ( Modeler SHARED ${ACIS_SOURCES_Modeler} )
507420
508421# Set link targets. Note that Modeler has dependencies towards most helper modules.
509- target_link_libraries ( Modeler ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Topology Lists SaveRestore GeometricAtoms )
422+ target_link_libraries ( Modeler ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} Entity Lists SaveRestore GeometricAtoms )
510423
511424# Add the build location to the include directories
512425target_include_directories ( Modeler PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} )
@@ -535,7 +448,7 @@ set_target_properties( Modeler PROPERTIES PREFIX "" )
535448
536449# Install Python modules to APP_INSTALL_DIR
537450install (
538- TARGETS Modeler Licensing Topology Lists SaveRestore GeometricAtoms GeometricOperators Sweeping Geometry Query
451+ TARGETS Modeler Licensing Entity Lists SaveRestore GeometricAtoms Sweeping Query
539452 DESTINATION ${APP_INSTALL_DIR} /${APP_MODULE_NAME}
540453)
541454
0 commit comments