517 lines
11 KiB
CMake
517 lines
11 KiB
CMake
add_subdirectory(App)
|
|
add_subdirectory(libarea)
|
|
add_subdirectory(PathSimulator)
|
|
|
|
if(BUILD_GUI)
|
|
add_subdirectory(Gui)
|
|
endif(BUILD_GUI)
|
|
|
|
set(Path_Scripts
|
|
Init.py
|
|
PathCommands.py
|
|
TestPathApp.py
|
|
PathMachineState.py
|
|
PathFeedRate.py
|
|
)
|
|
|
|
if(BUILD_GUI)
|
|
list (APPEND Path_Scripts InitGui.py)
|
|
endif(BUILD_GUI)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${Path_Scripts}
|
|
DESTINATION
|
|
Mod/Path
|
|
)
|
|
|
|
SET(PathPython_SRCS
|
|
Path/__init__.py
|
|
Path/Log.py
|
|
)
|
|
|
|
SET(PathPythonDressup_SRCS
|
|
Path/Dressup/__init__.py
|
|
Path/Dressup/Utils.py
|
|
Path/Dressup/PathBoundary.py
|
|
Path/Dressup/Tags.py
|
|
)
|
|
|
|
SET(PathPythonDressupGui_SRCS
|
|
Path/Dressup/Gui/__init__.py
|
|
Path/Dressup/Gui/AxisMap.py
|
|
Path/Dressup/Gui/Dogbone.py
|
|
Path/Dressup/Gui/Dragknife.py
|
|
Path/Dressup/Gui/LeadInOut.py
|
|
Path/Dressup/Gui/PathBoundary.py
|
|
Path/Dressup/Gui/Preferences.py
|
|
Path/Dressup/Gui/RampEntry.py
|
|
Path/Dressup/Gui/Tags.py
|
|
Path/Dressup/Gui/TagPreferences.py
|
|
Path/Dressup/Gui/ZCorrect.py
|
|
)
|
|
|
|
SET(PathPythonTools_SRCS
|
|
Path/Tools/__init__.py
|
|
Path/Tools/Bit.py
|
|
Path/Tools/Controller.py
|
|
)
|
|
|
|
SET(PathPythonToolsGui_SRCS
|
|
Path/Tools/Gui/__init__.py
|
|
Path/Tools/Gui/Bit.py
|
|
Path/Tools/Gui/BitCmd.py
|
|
Path/Tools/Gui/BitEdit.py
|
|
Path/Tools/Gui/BitLibraryCmd.py
|
|
Path/Tools/Gui/BitLibrary.py
|
|
Path/Tools/Gui/Controller.py
|
|
)
|
|
|
|
SET(PathPythonPost_SRCS
|
|
Path/Post/__init__.py
|
|
Path/Post/Command.py
|
|
Path/Post/Processor.py
|
|
Path/Post/Utils.py
|
|
Path/Post/UtilsArguments.py
|
|
Path/Post/UtilsExport.py
|
|
Path/Post/UtilsParse.py
|
|
)
|
|
|
|
SET(PathPythonPostScripts_SRCS
|
|
Path/Post/scripts/__init__.py
|
|
Path/Post/scripts/centroid_post.py
|
|
Path/Post/scripts/comparams_post.py
|
|
Path/Post/scripts/dxf_post.py
|
|
Path/Post/scripts/dynapath_post.py
|
|
Path/Post/scripts/example_pre.py
|
|
Path/Post/scripts/fablin_post.py
|
|
Path/Post/scripts/fanuc_post.py
|
|
Path/Post/scripts/gcode_pre.py
|
|
Path/Post/scripts/grbl_post.py
|
|
Path/Post/scripts/heidenhain_post.py
|
|
Path/Post/scripts/jtech_post.py
|
|
Path/Post/scripts/KineticNCBeamicon2_post.py
|
|
Path/Post/scripts/linuxcnc_post.py
|
|
Path/Post/scripts/mach3_mach4_post.py
|
|
Path/Post/scripts/marlin_post.py
|
|
Path/Post/scripts/nccad_post.py
|
|
Path/Post/scripts/opensbp_post.py
|
|
Path/Post/scripts/opensbp_pre.py
|
|
Path/Post/scripts/philips_post.py
|
|
Path/Post/scripts/refactored_centroid_post.py
|
|
Path/Post/scripts/refactored_grbl_post.py
|
|
Path/Post/scripts/refactored_linuxcnc_post.py
|
|
Path/Post/scripts/refactored_mach3_mach4_post.py
|
|
Path/Post/scripts/refactored_test_post.py
|
|
Path/Post/scripts/rml_post.py
|
|
Path/Post/scripts/rrf_post.py
|
|
Path/Post/scripts/slic3r_pre.py
|
|
Path/Post/scripts/smoothie_post.py
|
|
Path/Post/scripts/uccnc_post.py
|
|
)
|
|
|
|
SET(PathPythonOp_SRCS
|
|
Path/Op/__init__.py
|
|
Path/Op/Adaptive.py
|
|
Path/Op/Area.py
|
|
Path/Op/Base.py
|
|
Path/Op/CircularHoleBase.py
|
|
Path/Op/Custom.py
|
|
Path/Op/Deburr.py
|
|
Path/Op/Engrave.py
|
|
Path/Op/EngraveBase.py
|
|
Path/Op/Drilling.py
|
|
Path/Op/Helix.py
|
|
Path/Op/MillFace.py
|
|
Path/Op/Pocket.py
|
|
Path/Op/PocketBase.py
|
|
Path/Op/PocketShape.py
|
|
Path/Op/Probe.py
|
|
Path/Op/Profile.py
|
|
Path/Op/Slot.py
|
|
Path/Op/Surface.py
|
|
Path/Op/SurfaceSupport.py
|
|
Path/Op/ThreadMilling.py
|
|
Path/Op/Util.py
|
|
Path/Op/Vcarve.py
|
|
Path/Op/Waterline.py
|
|
)
|
|
|
|
SET(PathPythonOpGui_SRCS
|
|
Path/Op/Gui/__init__.py
|
|
Path/Op/Gui/Adaptive.py
|
|
Path/Op/Gui/Base.py
|
|
Path/Op/Gui/CircularHoleBase.py
|
|
Path/Op/Gui/Custom.py
|
|
Path/Op/Gui/Deburr.py
|
|
Path/Op/Gui/Drilling.py
|
|
Path/Op/Gui/Engrave.py
|
|
Path/Op/Gui/Helix.py
|
|
Path/Op/Gui/MillFace.py
|
|
Path/Op/Gui/PocketBase.py
|
|
Path/Op/Gui/Pocket.py
|
|
Path/Op/Gui/PocketShape.py
|
|
Path/Op/Gui/Probe.py
|
|
Path/Op/Gui/Profile.py
|
|
Path/Op/Gui/Slot.py
|
|
Path/Op/Gui/Surface.py
|
|
Path/Op/Gui/ThreadMilling.py
|
|
Path/Op/Gui/Vcarve.py
|
|
Path/Op/Gui/Waterline.py
|
|
)
|
|
|
|
SET(PathScripts_SRCS
|
|
PathScripts/drillableLib.py
|
|
PathScripts/PathArray.py
|
|
PathScripts/PathCamoticsGui.py
|
|
PathScripts/PathComment.py
|
|
PathScripts/PathCopy.py
|
|
PathScripts/PathFeatureExtensions.py
|
|
PathScripts/PathFeatureExtensionsGui.py
|
|
PathScripts/PathFixture.py
|
|
PathScripts/PathGeom.py
|
|
PathScripts/PathGetPoint.py
|
|
PathScripts/PathGui.py
|
|
PathScripts/PathGuiInit.py
|
|
PathScripts/PathHop.py
|
|
PathScripts/PathIconViewProvider.py
|
|
PathScripts/PathInspect.py
|
|
PathScripts/PathJob.py
|
|
PathScripts/PathJobCmd.py
|
|
PathScripts/PathJobDlg.py
|
|
PathScripts/PathJobGui.py
|
|
PathScripts/PathPreferences.py
|
|
PathScripts/PathPreferencesAdvanced.py
|
|
PathScripts/PathPreferencesPathJob.py
|
|
PathScripts/PathProperty.py
|
|
PathScripts/PathPropertyBag.py
|
|
PathScripts/PathPropertyBagGui.py
|
|
PathScripts/PathPropertyEditor.py
|
|
PathScripts/PathSanity.py
|
|
PathScripts/PathSelection.py
|
|
PathScripts/PathSetupSheet.py
|
|
PathScripts/PathSetupSheetGui.py
|
|
PathScripts/PathSetupSheetOpPrototype.py
|
|
PathScripts/PathSetupSheetOpPrototypeGui.py
|
|
PathScripts/PathSimpleCopy.py
|
|
PathScripts/PathSimulatorGui.py
|
|
PathScripts/PathStock.py
|
|
PathScripts/PathStop.py
|
|
PathScripts/PathUtil.py
|
|
PathScripts/PathUtils.py
|
|
PathScripts/PathUtilsGui.py
|
|
PathScripts/__init__.py
|
|
)
|
|
|
|
SET(Generator_SRCS
|
|
Generators/drill_generator.py
|
|
Generators/helix_generator.py
|
|
Generators/rotation_generator.py
|
|
Generators/threadmilling_generator.py
|
|
Generators/toolchange_generator.py
|
|
)
|
|
|
|
SET(PathPythonGui_SRCS
|
|
PathPythonGui/__init__.py
|
|
PathPythonGui/simple_edit_panel.py
|
|
)
|
|
|
|
SET(Tools_SRCS
|
|
Tools/README.md
|
|
)
|
|
|
|
SET(Tools_Bit_SRCS
|
|
Tools/Bit/45degree_chamfer.fctb
|
|
Tools/Bit/5mm-thread-cutter.fctb
|
|
Tools/Bit/5mm_Drill.fctb
|
|
Tools/Bit/5mm_Endmill.fctb
|
|
Tools/Bit/60degree_Vbit.fctb
|
|
Tools/Bit/6mm_Ball_End.fctb
|
|
Tools/Bit/6mm_Bullnose.fctb
|
|
Tools/Bit/probe.fctb
|
|
Tools/Bit/slittingsaw.fctb
|
|
)
|
|
|
|
SET(Tools_Library_SRCS
|
|
Tools/Library/Default.fctl
|
|
)
|
|
|
|
SET(Tools_Shape_SRCS
|
|
Tools/Shape/ballend.fcstd
|
|
Tools/Shape/bullnose.fcstd
|
|
Tools/Shape/drill.fcstd
|
|
Tools/Shape/chamfer.fcstd
|
|
Tools/Shape/endmill.fcstd
|
|
Tools/Shape/probe.fcstd
|
|
Tools/Shape/slittingsaw.fcstd
|
|
Tools/Shape/thread-mill.fcstd
|
|
Tools/Shape/v-bit.fcstd
|
|
)
|
|
|
|
SET(PathTests_SRCS
|
|
PathTests/__init__.py
|
|
PathTests/boxtest.fcstd
|
|
PathTests/boxtest1.fcstd
|
|
PathTests/Drilling_1.FCStd
|
|
PathTests/drill_test1.FCStd
|
|
PathTests/PathTestUtils.py
|
|
PathTests/test_adaptive.fcstd
|
|
PathTests/test_centroid_00.ngc
|
|
PathTests/test_filenaming.fcstd
|
|
PathTests/test_geomop.fcstd
|
|
PathTests/test_holes00.fcstd
|
|
PathTests/TestCentroidPost.py
|
|
PathTests/TestGrblPost.py
|
|
PathTests/TestLinuxCNCPost.py
|
|
PathTests/TestMach3Mach4Post.py
|
|
PathTests/TestPathAdaptive.py
|
|
PathTests/TestPathCore.py
|
|
PathTests/TestPathDeburr.py
|
|
PathTests/TestPathDepthParams.py
|
|
PathTests/TestPathDressupDogbone.py
|
|
PathTests/TestPathDressupHoldingTags.py
|
|
PathTests/TestPathDrillGenerator.py
|
|
PathTests/TestPathDrillable.py
|
|
PathTests/TestPathRotationGenerator.py
|
|
PathTests/TestPathGeom.py
|
|
PathTests/TestPathHelix.py
|
|
PathTests/TestPathHelpers.py
|
|
PathTests/TestPathHelixGenerator.py
|
|
PathTests/TestPathLog.py
|
|
PathTests/TestPathOpUtil.py
|
|
PathTests/TestPathPost.py
|
|
PathTests/TestPathPreferences.py
|
|
PathTests/TestPathPropertyBag.py
|
|
PathTests/TestPathSetupSheet.py
|
|
PathTests/TestPathStock.py
|
|
PathTests/TestPathToolChangeGenerator.py
|
|
PathTests/TestPathThreadMilling.py
|
|
PathTests/TestPathThreadMillingGenerator.py
|
|
PathTests/TestPathToolBit.py
|
|
PathTests/TestPathToolController.py
|
|
PathTests/TestPathUtil.py
|
|
PathTests/TestPathVcarve.py
|
|
PathTests/TestPathVoronoi.py
|
|
PathTests/TestRefactoredCentroidPost.py
|
|
PathTests/TestRefactoredGrblPost.py
|
|
PathTests/TestRefactoredLinuxCNCPost.py
|
|
PathTests/TestRefactoredMach3Mach4Post.py
|
|
PathTests/TestRefactoredTestPost.py
|
|
PathTests/Tools/Bit/test-path-tool-bit-bit-00.fctb
|
|
PathTests/Tools/Library/test-path-tool-bit-library-00.fctl
|
|
PathTests/Tools/Shape/test-path-tool-bit-shape-00.fcstd
|
|
)
|
|
|
|
SET(PathImages_Ops
|
|
Images/Ops/chamfer.svg
|
|
)
|
|
|
|
SET(PathImages_Tools
|
|
Images/Tools/drill.svg
|
|
Images/Tools/endmill.svg
|
|
Images/Tools/v-bit.svg
|
|
)
|
|
|
|
SET(Path_Images
|
|
${PathImages_Ops}
|
|
${PathImages_Tools}
|
|
)
|
|
|
|
SET(PathData_Threads
|
|
Data/Threads/imperial-external-2A.csv
|
|
Data/Threads/imperial-external-3A.csv
|
|
Data/Threads/imperial-internal-2B.csv
|
|
Data/Threads/imperial-internal-3B.csv
|
|
Data/Threads/metric-external-4G6G.csv
|
|
Data/Threads/metric-external-6G.csv
|
|
Data/Threads/metric-internal-6H.csv
|
|
)
|
|
|
|
SET(Path_Data
|
|
${PathData_Threads}
|
|
)
|
|
|
|
SET(all_files
|
|
${PathScripts_SRCS}
|
|
${PathPython_SRCS}
|
|
${PathPythonDressup_SRCS}
|
|
${PathPythonDressupGui_SRCS}
|
|
${PathPythonOp_SRCS}
|
|
${PathPythonOpGui_SRCS}
|
|
${PathPythonPost_SRCS}
|
|
${PathPythonPostScripts_SRCS}
|
|
${PathPythonTools_SRCS}
|
|
${PathPythonToolsGui_SRCS}
|
|
${Generator_SRCS}
|
|
${PathPythonGui_SRCS}
|
|
${Tools_SRCS}
|
|
${Tools_Bit_SRCS}
|
|
${Tools_Library_SRCS}
|
|
${Tools_Shape_SRCS}
|
|
${Path_Images}
|
|
${Path_Data}
|
|
)
|
|
|
|
ADD_CUSTOM_TARGET(PathScripts ALL
|
|
SOURCES ${all_files}
|
|
)
|
|
|
|
SET(test_files
|
|
${Path_Scripts}
|
|
${PathTests_SRCS}
|
|
)
|
|
|
|
ADD_CUSTOM_TARGET(PathTests ALL
|
|
SOURCES ${test_files}
|
|
)
|
|
|
|
fc_copy_sources(PathScripts "${CMAKE_BINARY_DIR}/Mod/Path" ${all_files})
|
|
fc_copy_sources(PathTests "${CMAKE_BINARY_DIR}/Mod/Path" ${test_files})
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathScripts_SRCS}
|
|
DESTINATION
|
|
Mod/Path/PathScripts
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPython_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonDressup_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Dressup
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonDressupGui_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Dressup/Gui
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonOp_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Op
|
|
)
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonOpGui_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Op/Gui
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonPost_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Post
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonTools_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Tools
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonToolsGui_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Tools/Gui
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonPostScripts_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Path/Post/scripts
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${Generator_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Generators
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathTests_SRCS}
|
|
DESTINATION
|
|
Mod/Path/PathTests
|
|
)
|
|
|
|
INSTALL(
|
|
DIRECTORY
|
|
PathTests/Tools
|
|
DESTINATION
|
|
Mod/Path/PathTests
|
|
)
|
|
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathPythonGui_SRCS}
|
|
DESTINATION
|
|
Mod/Path/PathPythonGui
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${Tools_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Tools
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${Tools_Bit_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Tools/Bit
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${Tools_Library_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Tools/Library
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${Tools_Shape_SRCS}
|
|
DESTINATION
|
|
Mod/Path/Tools/Shape
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathImages_Ops}
|
|
DESTINATION
|
|
Mod/Path/Images/Ops
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathImages_Tools}
|
|
DESTINATION
|
|
Mod/Path/Images/Tools
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PathData_Threads}
|
|
DESTINATION
|
|
Mod/Path/Data/Threads
|
|
)
|