File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ SET_SOURCE_FILES_PROPERTIES(IfcPython.i PROPERTIES CPLUSPLUS ON)
1818SWIG_ADD_MODULE (ifc_wrapper python IfcPython.i )
1919SWIG_LINK_LIBRARIES (ifc_wrapper ${PYTHON_LIBRARIES} IfcParse IfcGeom TKernel TKMath TKBRep TKGeomBase TKGeomAlgo TKG3d TKG2d TKShHealing TKTopAlgo TKMesh TKPrim TKBool TKBO TKFillet TKOffset )
2020
21+ file (COPY "${CMAKE_CURRENT_SOURCE_DIR} /ifcopenshell.py" DESTINATION "${CMAKE_BINARY_DIR} /ifcwrap" )
22+
2123# To install IfcPython let's get the site-packackes dir from python
2224EXECUTE_PROCESS (COMMAND python -c "from distutils.sysconfig import get_python_lib as x; print (x())"
2325 OUTPUT_VARIABLE python_package_dir )
@@ -27,10 +29,11 @@ STRING(REPLACE "\r" "" python_package_dir "${python_package_dir}")
2729STRING (REPLACE "\n " "" python_package_dir "${python_package_dir} " )
2830
2931INSTALL (FILES
32+ "${CMAKE_BINARY_DIR} /ifcwrap/ifcopenshell.py"
3033 "${CMAKE_BINARY_DIR} /ifcwrap/ifc_wrapper.py"
3134 "${CMAKE_BINARY_DIR} /ifcwrap/_ifc_wrapper.so"
3235 DESTINATION "${python_package_dir} " )
3336
3437ENDIF (PYTHONLIBS_FOUND )
3538
36- ENDIF (SWIG_FOUND )
39+ ENDIF (SWIG_FOUND )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments