cmake changes for /Mod/TechDraw
This commit is contained in:
parent
8e77d3583e
commit
67bf21277a
|
@ -34,6 +34,7 @@ include(cMake/FreeCadMacros.cmake)
|
|||
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cMake")
|
||||
|
||||
|
||||
#if(CMAKE_CFG_INTDIR STREQUAL .)
|
||||
# No Debug/Release output paths
|
||||
set(DEBUG_MAIN_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
||||
|
@ -208,6 +209,7 @@ OPTION(BUILD_SKETCHER "Build the FreeCAD sketcher module" ON)
|
|||
OPTION(BUILD_SPREADSHEET "Build the FreeCAD spreadsheet module" ON)
|
||||
OPTION(BUILD_START "Build the FreeCAD start module" ON)
|
||||
OPTION(BUILD_TEST "Build the FreeCAD test module" ON)
|
||||
OPTION(BUILD_TECHDRAW "Build the FreeCAD Technical Drawing module" ON)
|
||||
OPTION(BUILD_WEB "Build the FreeCAD web module" ON)
|
||||
OPTION(BUILD_VR "Build the FreeCAD Oculus Rift support (need Oculus SDK 4.x or higher)" OFF)
|
||||
|
||||
|
@ -235,7 +237,6 @@ if (FREECAD_BUILD_DEBIAN)
|
|||
# A Debian package for SMESH doesn't exist
|
||||
#set(FREECAD_USE_EXTERNAL_SMESH ON)
|
||||
endif (FREECAD_BUILD_DEBIAN)
|
||||
|
||||
if(BUILD_MESH_PART OR BUILD_FEM)
|
||||
set(BUILD_SMESH ON)
|
||||
endif()
|
||||
|
|
|
@ -129,3 +129,7 @@ endif(BUILD_PATH)
|
|||
if(BUILD_SHOW)
|
||||
add_subdirectory(Show)
|
||||
endif(BUILD_SHOW)
|
||||
|
||||
if(BUILD_TECHDRAW)
|
||||
add_subdirectory(TechDraw)
|
||||
endif(BUILD_TECHDRAW)
|
||||
|
|
29
src/Mod/TechDraw/CMakeLists.txt
Normal file
29
src/Mod/TechDraw/CMakeLists.txt
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
add_definitions(-DMOD_TECHDRAW_HANDLE_FACES=0)
|
||||
|
||||
add_subdirectory(App)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
Init.py
|
||||
InitGui.py
|
||||
DrawingAlgos.py
|
||||
DrawingExample.py
|
||||
DrawingTests.py
|
||||
DrawingPatterns.py
|
||||
DESTINATION
|
||||
Mod/Drawing
|
||||
)
|
||||
|
||||
INSTALL(
|
||||
DIRECTORY
|
||||
Templates
|
||||
DESTINATION
|
||||
${CMAKE_INSTALL_DATADIR}/Mod/Drawing
|
||||
FILES_MATCHING
|
||||
PATTERN "*.svg*"
|
||||
PATTERN "*.dxf*"
|
||||
)
|
Loading…
Reference in New Issue
Block a user