Browse Source

rm old build dir, use cmake

Former-commit-id: 7d8e5bb5ab7807726bb023ffaeb8d3fbf66d94d8
Alec Jacobson 10 years ago
parent
commit
cde5051cad
70 changed files with 120 additions and 948 deletions
  1. 15 10
      RELEASE_HISTORY.txt
  2. 1 1
      VERSION.txt
  3. 0 127
      build/Makefile
  4. 0 59
      build/Makefile_bbw
  5. 0 54
      build/Makefile_boolean
  6. 0 45
      build/Makefile_boost
  7. 0 46
      build/Makefile_cgal
  8. 0 45
      build/Makefile_comiso
  9. 0 48
      build/Makefile_embree
  10. 0 45
      build/Makefile_lim
  11. 0 47
      build/Makefile_matlab
  12. 0 54
      build/Makefile_mosek
  13. 0 43
      build/Makefile_png
  14. 0 53
      build/Makefile_svd3x3
  15. 0 45
      build/Makefile_tetgen
  16. 0 45
      build/Makefile_triangle
  17. 0 51
      build/Makefile_viewer
  18. 0 61
      build/Makefile_xml
  19. 0 0
      examples/Makefile.conf
  20. 1 1
      examples/MatlabWorkspace/Makefile
  21. 1 1
      examples/ReAntTweakBar/Makefile
  22. 1 1
      examples/affine/Makefile
  23. 1 1
      examples/ambient-occlusion/Makefile
  24. 1 1
      examples/arap/Makefile
  25. 1 1
      examples/bbw/Makefile
  26. 1 1
      examples/beach-balls/Makefile
  27. 1 1
      examples/camera/Makefile
  28. 1 1
      examples/colored-mesh/Makefile
  29. 33 0
      examples/components/Makefile
  30. 1 1
      examples/convertmesh/Makefile
  31. 1 1
      examples/dmat/Makefile
  32. 1 1
      examples/eigen-gotchas/Makefile
  33. 1 1
      examples/embree/Makefile
  34. 1 1
      examples/example_fun/Makefile
  35. 1 1
      examples/file_contents_as_string/Makefile
  36. 1 1
      examples/flare-eyes/Makefile
  37. 1 1
      examples/get_seconds/Makefile
  38. 1 1
      examples/glslversion/Makefile
  39. 1 1
      examples/glut_speed_test/Makefile
  40. 1 1
      examples/harwell_boeing/Makefile
  41. 1 1
      examples/intersections/Makefile
  42. 1 1
      examples/is_dir/Makefile
  43. 1 1
      examples/marching_cubes/Makefile
  44. 1 1
      examples/meshio/Makefile
  45. 1 1
      examples/mode/Makefile
  46. 1 1
      examples/multi-viewport/Makefile
  47. 1 1
      examples/patches/Makefile
  48. 1 1
      examples/path_tests/Makefile
  49. 1 1
      examples/pathinfo/Makefile
  50. 1 1
      examples/randomly-sample-mesh/Makefile
  51. 1 1
      examples/render_to_png/Makefile
  52. 1 1
      examples/rotate-widget/Makefile
  53. 1 1
      examples/scene-rotation/Makefile
  54. 1 1
      examples/shadow-mapping/Makefile
  55. 1 1
      examples/skeleton-builder/Makefile
  56. 1 1
      examples/skeleton-poser/Makefile
  57. 1 1
      examples/skeleton/Makefile
  58. 1 1
      examples/slice/Makefile
  59. 1 1
      examples/sort/Makefile
  60. 1 1
      examples/sortrows/Makefile
  61. 1 1
      examples/stdin_to_temp/Makefile
  62. 1 1
      examples/svd/Makefile
  63. 1 1
      examples/textured-mesh/Makefile
  64. 1 1
      examples/trackball/Makefile
  65. 1 1
      examples/transparency/Makefile
  66. 1 1
      examples/transpose_blocks/Makefile
  67. 1 1
      examples/upright/Makefile
  68. 0 0
      optional/CMakeLists.txt
  69. 24 22
      optional/README.md
  70. 0 0
      optional/index.html

+ 15 - 10
RELEASE_HISTORY.txt

@@ -1,13 +1,18 @@
-1.1.6  Major boolean robustness fix, drop CGAL dependency for AABB/distances
+# Version tracking
-1.1.5  Bug fix in booleans
+
-1.1.4  Edge collapsing and linear program solving
+Version | Short description
-1.1.3  Bug fixes in active set and boundary_conditions
+--------|----------------------------------------------------------------------
-1.1.1  PLY file format support
+1.1.7   | Switch build for static library to cmake.
-1.1.0  Mesh boolean operations using CGAL and cork, implementing [Attene 14]
+1.1.6   | Major boolean robustness fix, drop CGAL dependency for AABB/distances
-1.0.3  Bone heat method
+1.1.5   | Bug fix in booleans
-1.0.2  Bug fix in winding number code
+1.1.4   | Edge collapsing and linear program solving
-1.0.1  Bug fixes and more CGAL support
+1.1.3   | Bug fixes in active set and boundary_conditions
-1.0.0  Major beta release: many renames, tutorial, triangle wrapper, org. build
+1.1.1   | PLY file format support
+1.1.0   | Mesh boolean operations using CGAL and cork, implementing [Attene 14]
+1.0.3   | Bone heat method
+1.0.2   | Bug fix in winding number code
+1.0.1   | Bug fixes and more CGAL support
+1.0.0   | Major beta release: many renames, tutorial, triangle, org. build
 
 
 ## Version 1.0 Changes ##
 ## Version 1.0 Changes ##
 Our beta release marks our confidence that this library can be used outside of
 Our beta release marks our confidence that this library can be used outside of

+ 1 - 1
VERSION.txt

@@ -3,4 +3,4 @@
 # Anyone may increment Minor to indicate a small change.
 # Anyone may increment Minor to indicate a small change.
 # Major indicates a large change or large number of changes (upload to website)
 # Major indicates a large change or large number of changes (upload to website)
 # World indicates a substantial change or release
 # World indicates a substantial change or release
-1.1.6
+1.1.7

+ 0 - 127
build/Makefile

@@ -1,127 +0,0 @@
-.PHONY: all
-all: lib extras examples
-framework: lib extras lib/igl.framework/
-
-# Shared flags etc.
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-$(info Hello, $(IGL_USERNAME)!)
-
-# optimized default settings
-all: LFLAGS +=
-#debug: OPTFLAGS= -g -Wall -Werror
-debug: OPTFLAGS= -g -Wall
-debug: DEBUG=debug
-CFLAGS += $(OPTFLAGS)
-#CFLAGS += -DIGL_NO_OPENGL -DIGL_NO_ANTTWEAKBAR
-# We use well-supported features of c++11
-
-EXTRAS=
-ifeq ($(IGL_WITH_BBW),1)
-	EXTRAS += bbw
-endif
-ifeq ($(IGL_WITH_BOOLEAN),1)
-	EXTRAS += boolean
-endif
-ifeq ($(IGL_WITH_BOOST),1)
-	EXTRAS += boost
-endif
-ifeq ($(IGL_WITH_CGAL),1)
-	EXTRAS += cgal
-endif
-ifeq ($(IGL_WITH_EMBREE),1)
-	EXTRAS += embree
-endif
-ifeq ($(IGL_WITH_COMISO),1)
-	EXTRAS += comiso
-endif
-ifeq ($(IGL_WITH_MATLAB),1)
-	EXTRAS += matlab
-endif
-ifeq ($(IGL_WITH_MOSEK),1)
-	EXTRAS += mosek
-endif
-ifeq ($(IGL_WITH_PNG),1)
-	EXTRAS += png
-endif
-ifeq ($(IGL_WITH_SVD3X3),1)
-	EXTRAS += svd3x3
-endif
-ifeq ($(IGL_WITH_TETGEN),1)
-	# append tetgen extra dir
-	EXTRAS += tetgen
-endif
-ifeq ($(IGL_WITH_VIEWER),1)
-	EXTRAS += viewer
-endif
-ifeq ($(IGL_WITH_XML),1)
-	EXTRAS += xml
-endif
-
-.PHONY: examples
-.PHONY: extras
-debug: lib extras
-lib: ../lib/libigl.a
-examples: lib extras
-	make -C ../examples
-extras:
-	for p in  $(EXTRAS); \
-	do \
-	$(MAKE) -f Makefile_$$p $(DEBUG); \
-	done
-
-
-#############################################################################
-# SOURCE
-#############################################################################
-CPP_FILES=$(wildcard ../include/igl/*.cpp)
-H_FILES=$(wildcard ../include/igl/*.h)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-#############################################################################
-# DEPENDENCIES
-#############################################################################
-INC+=$(OPENGL_INC)
-INC+=$(EIGEN3_INC)
-INC+=$(ANTTWEAKBAR_INC)
-
-.PHONY: obj
-obj:
-	mkdir -p obj
-
-../lib/libigl.a: obj $(OBJ_FILES)
-	mkdir -p ../lib
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: ../include/igl/%.cpp ../include/igl/%.h
-	$(GG) $(CFLAGS) $(AFLAGS) -c -o $@ $< $(INC)
-
-#lib/igl.framework/:
-#	mkdir -p $@
-#	cp lib/*.a $@
-#	mv $@/libigl.a $@/igl
-#	mkdir -p $@/Libraries
-#	mv $@/*.a $@/Libraries
-#	mkdir -p $@/Headers
-#	cp $(H_FILES) $@/Headers
-#	for p in $(EXTRAS); \
-#	do \
-#	mkdir $@/Headers/$$p; \
-#	cp include/igl/$$p/*.h $@/Headers/$$p; \
-#	done
-
-
-clean:
-	rm -rf ../lib/igl.framework/
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libigl.a
-	make -C ../examples clean
-	for p in  $(EXTRA_DIRS); \
-	do \
-	echo "cd $$p" ; \
-	$(MAKE) -C $$p clean; \
-	done

+ 0 - 59
build/Makefile_bbw

@@ -1,59 +0,0 @@
-.PHONY: all
-all: libiglbbw
-debug: libiglbbw
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: OPTFLAGS += -O3 -DNDEBUG $(OPENMP)
-debug: OPTFLAGS += -g -Wall
-CFLAGS += $(OPTFLAGS)
-
-.PHONY: libiglbbw
-libiglbbw: obj ../lib/libiglbbw.a
-
-SRC_DIR=../include/igl/bbw/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-ifdef IGL_NO_MOSEK
-CFLAGS+=-DIGL_NO_MOSEK
-else
-# mosek dependency
-# TODO: linux, 32 bit etc
-ifndef MOSEKPLATFORM
-  MOSEKPLATFORM=osx64x86
-endif
-ifndef MOSEKVERSION
-  MOSEKVERSION=6
-endif
-IGLMOSEK=../mosek/
-IGLMOSEK_INC=-I$(IGLMOSEK)/
-INC+=${IGLMOSEK_INC}
-MOSEK=/usr/local/mosek
-MOSEK_INC=-I$(MOSEK)/$(MOSEKVERSION)/tools/platform/$(MOSEKPLATFORM)/h
-MOSEK_LIB=-L$(MOSEK)/$(MOSEKVERSION)/tools/platform/$(MOSEKPLATFORM)/bin -lmosek64
-INC+=$(MOSEK_INC)
-endif
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglbbw.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	$(GG) $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglbbw.a

+ 0 - 54
build/Makefile_boolean

@@ -1,54 +0,0 @@
-include Makefile.conf
-
-.PHONY: all
-all: libiglboolean
-debug: libiglboolean
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG -std=c++11
-debug: CFLAGS += -g -Wall -std=c++11
-
-.PHONY: libiglboolean
-libiglboolean: obj ../lib/libiglboolean.a
-
-SRC_DIR=../include/igl/boolean/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# cork dependency
-#CORK=../external/cork
-#CORK_INC=-I$(cork)/common -I$(cork)/rtcore/
-CORK=../external/cork/
-CORK_INC=-I$(CORK)/include/
-INC+=$(CORK_INC)
-
-# CGAL dependency
-CGAL=$(DEFAULT_PREFIX)
-CGAL_INC=-I$(CGAL)/include
-CGAL_FLAGS=-frounding-math -fsignaling-nans 
-CFLAGS+=$(CGAL_FLAGS)
-INC+=$(CGAL_INC)
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglboolean.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(OPENMP) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglboolean.a

+ 0 - 45
build/Makefile_boost

@@ -1,45 +0,0 @@
-include Makefile.conf
-
-.PHONY: all
-all: libiglboost
-debug: libiglboost
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG
-debug: CFLAGS += -g -Wall 
-
-.PHONY: libiglboost
-libiglboost: obj ../lib/libiglboost.a
-
-SRC_DIR=../include/igl/boost/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# boost dependency
-BOOST=/opt/local/
-BOOST_INC=-I$(BOOST)/include
-INC+=$(BOOST_INC)
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglboost.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(OPENMP) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglboost.a

+ 0 - 46
build/Makefile_cgal

@@ -1,46 +0,0 @@
-
-.PHONY: all
-all: libiglcgal
-debug: libiglcgal
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG 
-debug: CFLAGS += -g -Wall -Werror
-
-.PHONY: libcgal
-libiglcgal: obj ../lib/libiglcgal.a
-
-SRC_DIR=../include/igl/cgal/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# CGAL dependency
-CGAL=$(DEFAULT_PREFIX)
-CGAL_INC=-I$(CGAL)/include
-CGAL_FLAGS=-frounding-math -fsignaling-nans ${OPENMP}
-CFLAGS+=$(CGAL_FLAGS)
-INC+=$(CGAL_INC)
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglcgal.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglcgal.a

+ 0 - 45
build/Makefile_comiso

@@ -1,45 +0,0 @@
-include Makefile.conf
-
-.PHONY: all
-all: libiglcomiso
-debug: libiglcomiso
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG -std=c++11
-debug: CFLAGS += -g -Wall -std=c++11
-CFLAGS += -DINCLUDE_TEMPLATES
-
-.PHONY: libiglcomiso
-libiglcomiso: obj ../lib/libiglcomiso.a
-
-SRC_DIR=../include/igl/comiso/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# comiso dependency
-COMISO_INC=-I$(COMISO)/ -I$(COMISO)/gmm/include -I$(COMISO)/../
-INC+=$(COMISO_INC)
-
-obj:
-	mkdir -p obj
-
-../lib/libiglcomiso.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(OPENMP) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglcomiso.a

+ 0 - 48
build/Makefile_embree

@@ -1,48 +0,0 @@
-include Makefile.conf
-
-.PHONY: all
-all: libiglembree
-debug: libiglembree
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG -std=c++11
-debug: CFLAGS += -g -Wall -std=c++11
-
-.PHONY: libiglembree
-libiglembree: obj ../lib/libiglembree.a
-
-SRC_DIR=../include/igl/embree/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# embree dependency
-#EMBREE=../external/embree
-#EMBREE_INC=-I$(EMBREE)/common -I$(EMBREE)/rtcore/
-EMBREE=../external/embree/
-EMBREE_INC=-I$(EMBREE)/ -I$(EMBREE)/include
-#EMBREE_LIB=-L$(EMBREE)/bin -lrtcore -lsys
-INC+=$(EMBREE_INC)
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglembree.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(OPENMP) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglembree.a

+ 0 - 45
build/Makefile_lim

@@ -1,45 +0,0 @@
-include Makefile.conf
-
-.PHONY: all
-all: libigllim
-debug: libigllim
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG
-debug: CFLAGS += -g -Wall 
-
-.PHONY: libigllim
-libigllim: obj ../lib/libigllim.a
-
-SRC_DIR=../include/igl/lim/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# LIM dependency
-LIM=../external/lim
-LIM_INC=-I$(LIM)
-INC+=$(LIM_INC)
-
-obj: 
-	mkdir -p obj
-
-../lib/libigllim.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(OPENMP) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libigllim.a

+ 0 - 47
build/Makefile_matlab

@@ -1,47 +0,0 @@
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG
-debug: CFLAGS += -g -Wall -Werror
-
-.PHONY: all
-all: libiglmatlab
-debug: libiglmatlab
-
-.PHONY: libmatlab
-libiglmatlab: obj ../lib/libiglmatlab.a
-
-SRC_DIR=../include/igl/matlab/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# Matlab dependency
-ifndef MATLAB
-  MATLAB=/Applications/MATLAB_R2014b.app/
-  $(warning MATLAB undefined. Setting MATLAB=${MATLAB})
-endif
-MATLAB_INC=-I$(MATLAB)/extern/include/
-MATLAB_LIB=-L$(MATLAB)/bin/maci64 -lmx -leng
-INC+=$(MATLAB_INC)
-
-obj:
-	mkdir -p obj
-
-../lib/libiglmatlab.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglmatlab.a

+ 0 - 54
build/Makefile_mosek

@@ -1,54 +0,0 @@
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-
-.PHONY: all
-all: libiglmosek
-debug: libiglmosek
-
-include Makefile.conf
-all: OPTFLAGS += -O3 -DNDEBUG $(OPENMP)
-debug: OPTFLAGS += -g -Wall
-CFLAGS += $(OPTFLAGS)
-
-.PHONY: libiglmosek
-libiglmosek: obj ../lib/libiglmosek.a
-
-SRC_DIR=../include/igl/mosek/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# mosek dependency
-# TODO: linux, 32 bit etc
-ifndef MOSEKPLATFORM
-  MOSEKPLATFORM=osx64x86
-endif
-ifndef MOSEKVERSION
-  MOSEKVERSION=6
-endif
-MOSEK=/usr/local/mosek
-MOSEK_INC=-I$(MOSEK)/$(MOSEKVERSION)/tools/platform/$(MOSEKPLATFORM)/h
-MOSEK_LIB=-L$(MOSEK)/$(MOSEKVERSION)/tools/platform/$(MOSEKPLATFORM)/bin -lmosek64
-INC+=$(MOSEK_INC)
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglmosek.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglmosek.a

+ 0 - 43
build/Makefile_png

@@ -1,43 +0,0 @@
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG 
-debug: CFLAGS += -g -Wall -Werror
-
-.PHONY: all
-all: libiglpng
-debug: libiglpng
-
-.PHONY: libpng
-libiglpng: obj ../lib/libiglpng.a
-
-SRC_DIR=../include/igl/png/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# YIMG dependency
-YIMG=../external/yimg
-YIMG_INC=-I$(YIMG)
-INC+=$(YIMG_INC)
-YIMG_STATIC_LIB=$(YIMG)/libyimg.a
-
-# BOOST dependency
-INC+=-I/opt/local/include/
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglpng.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglpng.a

+ 0 - 53
build/Makefile_svd3x3

@@ -1,53 +0,0 @@
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-
-.PHONY: all
-all: libiglsvd3x3
-debug: libiglsvd3x3
-
-include Makefile.conf
-all: OPTFLAGS += -O3 -DNDEBUG $(OPENMP)
-debug: OPTFLAGS += -g -Wall
-CFLAGS += $(OPTFLAGS) -std=c++11
-
-.PHONY: libiglsvd3x3
-libiglsvd3x3: obj ../lib/libiglsvd3x3.a
-
-SRC_DIR=../include/igl/svd3x3/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# SVD 
-SINGULAR_VALUE_DECOMPOSITION_INC=\
-	-I../external/Singular_Value_Decomposition/
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC) $(SINGULAR_VALUE_DECOMPOSITION_INC)
-
-# Matlab dependency
-ifndef MATLAB
-  MATLAB=/Applications/MATLAB_R2013b.app/
-  $(warning MATLAB undefined. Setting MATLAB=${MATLAB})
-endif
-MATLAB_INC=-I$(MATLAB)/extern/include/
-MATLAB_LIB=-L$(MATLAB)/bin/maci64 -lmx -leng
-INC+=$(MATLAB_INC)
-
-obj: 
-	mkdir -p obj
-
-../lib/libiglsvd3x3.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	$(GG) $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglsvd3x3.a

+ 0 - 45
build/Makefile_tetgen

@@ -1,45 +0,0 @@
-
-.PHONY: all
-all: libigltetgen
-debug: libigltetgen
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG 
-debug: CFLAGS += -g -Wall -Werror
-
-.PHONY: libtetgen
-libigltetgen: obj ../lib/libigltetgen.a
-
-SRC_DIR=../include/igl/tetgen/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# Tetgen dependency
-TETGEN=../external/tetgen
-TETGEN_INC=-I$(TETGEN)
-INC+=$(TETGEN_INC)
-TETGEN_STATIC_LIB=$(TETGEN)/libtet.a
-
-obj: 
-	mkdir -p obj
-
-../lib/libigltetgen.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libigltetgen.a

+ 0 - 45
build/Makefile_triangle

@@ -1,45 +0,0 @@
-
-.PHONY: all
-all: libigltriangle
-debug: libigltriangle
-
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG 
-debug: CFLAGS += -g -Wall -Werror
-
-.PHONY: libtriangle
-libigltriangle: obj ../lib/libigltriangle.a
-
-SRC_DIR=../include/igl/triangle/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY 
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# triangle dependency
-TRIANGLE=../external/triangle
-TRIANGLE_INC=-I$(TRIANGLE)
-INC+=$(TRIANGLE_INC)
-TRIANGLE_STATIC_LIB=$(TRIANGLE)/libtriangle.a
-
-obj: 
-	mkdir -p obj
-
-../lib/libigltriangle.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	g++ $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libigltriangle.a

+ 0 - 51
build/Makefile_viewer

@@ -1,51 +0,0 @@
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG -fopenmp
-debug: CFLAGS += -g -Wall -Werror -fopenmp
-
-.PHONY: all
-all: libiglviewer
-debug: libiglviewer
-
-.PHONY: libviewer
-libiglviewer: obj ../lib/libiglviewer.a
-
-SRC_DIR=../include/igl/viewer/
-CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY
-
-# Eigen dependency
-EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-INC+=$(EIGEN3_INC)
-
-# GLFW dependency
-ifndef GLFW
-	GLFW=../external/glfw/
-endif
-GLFW_INC=-I$(GLFW)/include
-INC+=$(GLFW_INC)
-ifndef ANTTWEAKBAR
-	ANTTWEAKBAR=../external/AntTweakBar/
-endif
-# Viewer also uses source files from AntTweakBar for font rendering
-ANTTWEAKBAR_INC=-I$(ANTTWEAKBAR)/include -I$(ANTTWEAKBAR)/src
-INC+=$(ANTTWEAKBAR_INC)
-
-obj:
-	mkdir -p obj
-
-../lib/libiglviewer.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: $(SRC_DIR)/%.cpp $(SRC_DIR)/%.h
-	$(GG) $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglmatlab.a

+ 0 - 61
build/Makefile_xml

@@ -1,61 +0,0 @@
-CFLAGS += -DIGL_STATIC_LIBRARY
-include Makefile.conf
-
-.PHONY: all
-#all:
-#debug:
-all: libiglxml
-debug: libiglxml
-
-include Makefile.conf
-all: CFLAGS += -O3 -DNDEBUG
-debug: CFLAGS += -g -Wall
-
-.PHONY: libiglxml
-libiglxml: obj ../lib/libiglxml.a
-
-#SRC_DIR=../include/igl/xml/
-#CPP_FILES=$(wildcard $(SRC_DIR)*.cpp)
-CPP_FILES=$(wildcard ../include/igl/xml/*.cpp)
-OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o)))
-
-# include igl headers
-INC+=-I../include/
-
-# EXPECTS THAT CFLAGS IS ALREADY SET APPROPRIATELY
-
-# Eigen dependency
-ifndef EIGEN3_INC
-	EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
-endif
-INC+=$(EIGEN3_INC)
-
-#AntTweakbar dependency
-ANTTWEAKBAR_INC=-I../external/AntTweakBar/include
-
-# xml dependency
-# TODO: linux, 32 bit etc
-TINYXML2=../external/tinyxml2
-TINYXML2_INC=-I$(TINYXML2)
-#TINYXML2_LIB=-L$(TINYXML2) -ltinyxml2
-INC+=$(TINYXML2_INC) $(ANTTWEAKBAR_INC)
-
-# AntTweakBar dependency
-ANTTWEAKBAR_INC=-I../external/AntTweakBar/include
-INC+=$(ANTTWEAKBAR_INC)
-
-#CFLAGS+=-std=c++11
-
-obj:
-	mkdir -p obj
-
-../lib/libiglxml.a: $(OBJ_FILES)
-	rm -f $@
-	ar cqs $@ $(OBJ_FILES)
-
-obj/%.o: ../include/igl/xml/%.cpp 
-	$(GG) $(AFLAGS) $(CFLAGS) -c -o $@ $< $(INC)
-
-clean:
-	rm -f $(OBJ_FILES)
-	rm -f ../lib/libiglxml.a

+ 0 - 0
build/Makefile.conf → examples/Makefile.conf


+ 1 - 1
examples/MatlabWorkspace/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglmatlab
 LIBIGL_LIB+=-liglmatlab
 
 
 MATLAB_INC=-I$(MATLAB)/extern/include/
 MATLAB_INC=-I$(MATLAB)/extern/include/

+ 1 - 1
examples/ReAntTweakBar/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/affine/Makefile

@@ -3,7 +3,7 @@
 all: example
 all: example
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 .PHONY: example
 .PHONY: example
 
 

+ 1 - 1
examples/ambient-occlusion/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglembree
 LIBIGL_LIB+=-liglembree
 
 
 all: example
 all: example

+ 1 - 1
examples/arap/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglsvd3x3
 LIBIGL_LIB+=-liglsvd3x3
 
 
 all: example
 all: example

+ 1 - 1
examples/bbw/Makefile

@@ -1,4 +1,4 @@
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 CXX=g++
 CXX=g++
 
 

+ 1 - 1
examples/beach-balls/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: obj example
 all: obj example
 
 

+ 1 - 1
examples/camera/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: obj example
 all: obj example
 
 

+ 1 - 1
examples/colored-mesh/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 33 - 0
examples/components/Makefile

@@ -0,0 +1,33 @@
+.PHONY: all
+
+# Shared flags etc.
+include ../Makefile.conf
+LIBIGL_LIB+=-liglembree -liglboost
+
+all: obj example
+
+.PHONY: example
+
+CFLAGS+=-g -std=c++11
+
+INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC) $(GLUT_INC) $(EMBREE_INC)
+LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB) $(EMBREE_LIB)
+
+CPP_FILES=$(wildcard ./*.cpp)
+OBJ_FILES=$(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o))) 
+
+example: obj $(OBJ_FILES)
+	g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -o example $(OBJ_FILES) $(LIB)
+
+obj:
+	mkdir -p obj
+
+obj/%.o: %.cpp
+	g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c $< -o $@ $(INC)
+
+obj/%.o: %.cpp %.h
+	g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c $< -o $@ $(INC)
+
+clean:
+	rm -f $(OBJ_FILES)
+	rm -f example

+ 1 - 1
examples/convertmesh/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: convertmesh
 all: convertmesh
 
 

+ 1 - 1
examples/dmat/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/eigen-gotchas/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/embree/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/example_fun/Makefile

@@ -3,7 +3,7 @@
 all: example_static example_header_only
 all: example_static example_header_only
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 CFLAGS+=-g
 CFLAGS+=-g
 INC=$(LIBIGL_INC)
 INC=$(LIBIGL_INC)

+ 1 - 1
examples/file_contents_as_string/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/flare-eyes/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: obj example
 all: obj example
 
 

+ 1 - 1
examples/get_seconds/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/glslversion/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/glut_speed_test/Makefile

@@ -3,7 +3,7 @@
 all: example
 all: example
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 .PHONY: example
 .PHONY: example
 
 

+ 1 - 1
examples/harwell_boeing/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/intersections/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB=+liglcgal
 LIBIGL_LIB=+liglcgal
 
 
 all: example
 all: example

+ 1 - 1
examples/is_dir/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/marching_cubes/Makefile

@@ -5,7 +5,7 @@ all: example
 .PHONY: example
 .PHONY: example
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 CFLAGS+=-g
 CFLAGS+=-g
 inc=$(LIBIGL_INC) $(EIGEN3_INC)
 inc=$(LIBIGL_INC) $(EIGEN3_INC)

+ 1 - 1
examples/meshio/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/mode/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/multi-viewport/Makefile

@@ -6,7 +6,7 @@ all: example
 
 
 .PHONY:  example
 .PHONY:  example
 
 
-include ../..//build/Makefile.conf
+include ../Makefile.conf
 
 
 CFLAGS+=-std=c++11 -g -Wno-deprecated-declarations
 CFLAGS+=-std=c++11 -g -Wno-deprecated-declarations
 
 

+ 1 - 1
examples/patches/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 ifdef LIBIGL_USE_STATIC_LIBRARY
 ifdef LIBIGL_USE_STATIC_LIBRARY
 	LIBIGL_LIB+=-liglembree -liglboost
 	LIBIGL_LIB+=-liglembree -liglboost
 endif
 endif

+ 1 - 1
examples/path_tests/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/pathinfo/Makefile

@@ -3,7 +3,7 @@
 all: example
 all: example
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 .PHONY: example
 .PHONY: example
 
 

+ 1 - 1
examples/randomly-sample-mesh/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: obj example
 all: obj example
 
 

+ 1 - 1
examples/render_to_png/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglpng
 LIBIGL_LIB+=-liglpng
 
 
 # YIMG dependency
 # YIMG dependency

+ 1 - 1
examples/rotate-widget/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: obj example
 all: obj example
 
 

+ 1 - 1
examples/scene-rotation/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: obj example
 all: obj example
 
 

+ 1 - 1
examples/shadow-mapping/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: obj example
 all: obj example
 
 

+ 1 - 1
examples/skeleton-builder/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglembree
 LIBIGL_LIB+=-liglembree
 
 
 all: obj skeleton_builder
 all: obj skeleton_builder

+ 1 - 1
examples/skeleton-poser/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglbbw -liglcgal
 LIBIGL_LIB+=-liglbbw -liglcgal
 
 
 all: obj skeleton-poser
 all: obj skeleton-poser

+ 1 - 1
examples/skeleton/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglbbw -liglmosek
 LIBIGL_LIB+=-liglbbw -liglmosek
 
 
 all: obj example
 all: obj example

+ 1 - 1
examples/slice/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/sort/Makefile

@@ -2,7 +2,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/sortrows/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/stdin_to_temp/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/svd/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/textured-mesh/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 LIBIGL_LIB+=-liglpng
 LIBIGL_LIB+=-liglpng
 
 
 all: example
 all: example

+ 1 - 1
examples/trackball/Makefile

@@ -3,7 +3,7 @@
 all: example
 all: example
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 .PHONY: example
 .PHONY: example
 
 

+ 1 - 1
examples/transparency/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/transpose_blocks/Makefile

@@ -1,7 +1,7 @@
 .PHONY: all
 .PHONY: all
 
 
 # Shared flags etc.
 # Shared flags etc.
-include ../../build/Makefile.conf
+include ../Makefile.conf
 
 
 all: example
 all: example
 
 

+ 1 - 1
examples/upright/Makefile

@@ -6,7 +6,7 @@ all: upright
 
 
 .PHONY: upright
 .PHONY: upright
 
 
-include ../..//build/Makefile.conf
+include ../Makefile.conf
 
 
 INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC)
 INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC)
 LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB)
 LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB)

+ 0 - 0
CMakeLists.txt → optional/CMakeLists.txt


+ 24 - 22
build/README.md → optional/README.md

@@ -1,9 +1,9 @@
 # Compiling libigl as a static library
 # Compiling libigl as a static library
 
 
 > Warning: compiling libigl as a static library is considerably more difficult
 > Warning: compiling libigl as a static library is considerably more difficult
-> than using it as a header-only library (see `../README.md` instead). Do it
+> than using it as a header-only library (see [../README.md](../) instead). Do
-> only if you are experienced with C++ and you want to improve your compilation
+> it only if you are experienced with C++, cmake and make, and you want to
-> times.
+> improve your compilation times.
 
 
 Libigl is developed most often on Mac OS X, though has current users in Linux
 Libigl is developed most often on Mac OS X, though has current users in Linux
 and Windows.
 and Windows.
@@ -14,22 +14,13 @@ Libigl may also be compiled to a static library. This is advantageous when
 building a project with libigl, since when used as an header-only library can
 building a project with libigl, since when used as an header-only library can
 slow down compile times.
 slow down compile times.
 
 
-To build the entire libigl library producing `lib/libigl.a`, issue:
+To build the entire libigl library producing at least `libigl/lib/libigl.a` and
+possible other (automatically detected) extras, e.g. `libigl/lib/libiglcgal.a`
+from _this current directory_: issue:
 
 
-    cd build
+    cd ../lib
-    make lib
+    cmake -DCMAKE_BUILD_TYPE=Release ..
-
+    make
-You may need to edit `Makefile.conf` accordingly. Best to give yourself an
-`IGL_USERNAME` and add a custom install suite for yourself. Then you can enable
-appropriate extras.
-
-#### Extras ####
-Once you've set up an `IGL_USERNAME` and enabled extras within Makefile.conf.
-You can build the extra libraries (into `lib/ligiglpng.a`, `lib/libiglmatlab.a`,
-`lib/libigltetgen.a`, `lib/libiglmosek.a`, etc.) by issuing:
-
-    cd build
-    make extras
 
 
 #### Examples ####
 #### Examples ####
 You can make a slew of examples by issuing:
 You can make a slew of examples by issuing:
@@ -38,6 +29,11 @@ You can make a slew of examples by issuing:
     make examples
     make examples
 
 
 #### External ####
 #### External ####
+
+> **Deprecation notice** All external libraries will be absorbed by libigl or
+> moved to separate git sub-repositories in the near future. The following
+> instructions are subject to immediate change.
+
 Finally there are a number of external libraries that we include in
 Finally there are a number of external libraries that we include in
 `./external/` because they are either difficult to obtain or they have been
 `./external/` because they are either difficult to obtain or they have been
 patched for easier use with libigl. Please see the respective readmes in those
 patched for easier use with libigl. Please see the respective readmes in those
@@ -45,7 +41,7 @@ directories.
 
 
 
 
 ##### Installing AntTweakBar #####
 ##### Installing AntTweakBar #####
-To build the a static AntTweakBar library on Mac OS X issue:
+To build a static AntTweakBar library on Mac OS X issue:
 
 
     cd external/AntTweakBar/src
     cd external/AntTweakBar/src
     make -f Makefile.osx.igl
     make -f Makefile.osx.igl
@@ -100,6 +96,10 @@ installed at `/usr/X11/lib`.
 
 
 
 
 ### Windows (Experimental) ###
 ### Windows (Experimental) ###
+
+> **Deprecation notice** Windows users should run cmake on the `CMakeLists.txt`
+> file in the current directory.
+
 To build a static library (.lib) on windows, open Visual Studio 2010.
 To build a static library (.lib) on windows, open Visual Studio 2010.
 
 
 - New > Project ...
 - New > Project ...
@@ -325,9 +325,11 @@ Alternatively, you can also compress everything into a single header file:
   `AntTweakBar`, `BLAS`). However, because all
   `AntTweakBar`, `BLAS`). However, because all
   depencies other than Eigen should be encapsulated between
   depencies other than Eigen should be encapsulated between
   `#ifndef` guards (e.g. `#ifndef IGL_NO_OPENGL`, it
   `#ifndef` guards (e.g. `#ifndef IGL_NO_OPENGL`, it
-  is possible to ignore certain functions that have such dependencies.</li>
+  is possible to ignore certain functions that have such dependencies.
-  <li><strong>Long compile:</strong> Compiling `igl.cpp` takes a long time and isn't easily parallelized (no `make -j12` equivalent).</li>
+
-  </ul>
+* **Long compile**: 
+  Compiling `igl.cpp` takes a long time and isn't easily parallelized (no `make
+  -j12` equivalent).
 
 
 Here's a tiny test example using `igl.h` and `igl.cpp`. Save the following in `test.cpp`:
 Here's a tiny test example using `igl.h` and `igl.cpp`. Save the following in `test.cpp`:
 
 

+ 0 - 0
build/index.html → optional/index.html