Commit 3a7d9b64 authored by Edward Vigmond's avatar Edward Vigmond

Reduced number of VTK libs

parent 951299c8
HOSTMACHINE := $(shell uname)
include make.conf
VTK_LIBDIR =/usr/local/lib
VTK_INCDIR =/usr/local/include/vtk-8.1
VTK_LIBDIR =/usr/lib64
VTK_INCDIR =/usr/include/vtk-8.1
FLTK_INC := $(shell fltk-config --use-glut --use-gl --cxxflags)
FLTK_LD_FLAGS := $(shell fltk-config --use-images --use-glut --use-gl --ldflags)
......@@ -48,7 +48,7 @@ CXXFLAGS = -std=c++11 -g -O$(DEBUG_LEVEL) $(OMP_FLAG) -MMD -DNOMINMAX
# VTK
ifdef VTK_LIBDIR
COMMON_INC += -DUSE_VTK -I$(VTK_INCDIR)
VTK_LSLIBS = $(shell ls $(VTK_LIBDIR)/libvtk*$(LIB_EXT)|grep -v Python|grep -v Java |grep -v TCL)
VTK_LSLIBS = $(shell ls $(VTK_LIBDIR)/libvtk*$(LIB_EXT) | grep -Ev '(Python)|(Java)|(TCL)|(Parallel)|(MPI)' )
a = $(subst $(VTK_LIBDIR)/lib,-l,$(VTK_LSLIBS) )
VTK_LIBS = $(subst $(LIB_EXT),,$(a) )
LIBS += $(VTK_LIBS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment