Skip to content

Commit

Permalink
FEM Post: Proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
ickby authored and wwmayer committed May 18, 2016
1 parent 3996726 commit 8805cab
Show file tree
Hide file tree
Showing 9 changed files with 2,192 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Expand Up @@ -196,6 +196,7 @@ OPTION(BUILD_START "Build the FreeCAD start module" ON)
OPTION(BUILD_TEST "Build the FreeCAD test 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)
OPTION(BUILD_VTK "Build the FreeCAD VTK support (need VTK 6 or higher)" OFF)

if(MSVC)
OPTION(BUILD_FEM_NETGEN "Build the FreeCAD FEM module with the NETGEN mesher" ON)
Expand Down Expand Up @@ -752,6 +753,14 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

#---------------------------------------------------

# -------------------------------- VTK --------------------------------
if(BUILD_VTK)
find_package(VTK REQUIRED)
add_definitions(-DFC_USE_VTK)

include(${VTK_USE_FILE})
endif(BUILD_VTK)

if(BUILD_GUI)
# -------------------------------- OpenGL --------------------------------

Expand Down
7 changes: 7 additions & 0 deletions src/Gui/CMakeLists.txt
Expand Up @@ -115,6 +115,13 @@ if(PYSIDE_INCLUDE_DIR)
)
endif(PYSIDE_INCLUDE_DIR)

if(BUILD_VTK)
set(FreeCADGui_LIBS
${FreeCADGui_LIBS}
${VTK_LIBRARIES}
)
endif(BUILD_VTK)

generate_from_xml(DocumentPy)
generate_from_xml(PythonWorkbenchPy)
generate_from_xml(ViewProviderPy)
Expand Down

0 comments on commit 8805cab

Please sign in to comment.