Skip to content

Commit

Permalink
Merge branch 'master' of github.com:FreeCAD/FreeCAD
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Sep 10, 2016
2 parents a932f7a + 5e0a60b commit ee314ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cMake/FindNETGEN.cmake
Expand Up @@ -60,6 +60,15 @@ ELSEIF(WIN32)
ENDIF(NOT NETGENDATA)

ELSE(DEFINED MACPORTS_PREFIX OR DEFINED HOMEBREW_PREFIX)
IF(NETGEN_ROOT)
SET(NETGEN_INCLUDEDIR ${NETGEN_ROOT}/include)
SET(NETGEN_LIBDIR ${NETGEN_ROOT}/lib)
# allow to customize if NETGEN_ROOT is used
IF(NOT NETGENDATA)
SET(NETGENDATA ${NETGEN_ROOT}/libsrc)
ENDIF(NOT NETGENDATA)
ENDIF()

FIND_PATH(NGLIB_INCLUDE_DIR NAMES nglib.h PATHS ${NETGEN_INCLUDEDIR} /usr/include)
FIND_LIBRARY(NGLIB_LIBNGLIB nglib PATHS ${NETGEN_LIBDIR} /usr/lib /usr/local/lib)
SET(NGLIB_LIBRARIES ${NGLIB_LIBNGLIB})
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/App/CMakeLists.txt
Expand Up @@ -21,6 +21,7 @@ include_directories(
${ZLIB_INCLUDE_DIR}
${XercesC_INCLUDE_DIRS}
${SMESH_INCLUDE_DIR}
${NETGEN_INCLUDE_DIRS}
${VTK_INCLUDE_DIR}
)

Expand Down

0 comments on commit ee314ed

Please sign in to comment.