The patch adds a cmake option BUILD_DESIGNER_PLUGIN, targeted mainly at package maintainers to allow an easy build and installation of the FreeCAD designer plugin. It has been discussed in https://forum.freecadweb.org/viewtopic.php?f=10&t=67706 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
10 lines
408 B
CMake
10 lines
408 B
CMake
macro(BuildAndInstallDesignerPlugin)
|
|
# =================================================================
|
|
# ============= Build and install the designer plugin =============
|
|
# =================================================================
|
|
|
|
if(BUILD_DESIGNER_PLUGIN)
|
|
add_subdirectory(src/Tools/plugins/widget)
|
|
endif(BUILD_DESIGNER_PLUGIN)
|
|
endmacro(BuildAndInstallDesignerPlugin)
|