Browse Source

IGL_HEADER_ONLY --> ~IGL_STATIC_LIBRARY

Former-commit-id: 00fd1c9f24f90b52ebfaf85eeb84a3e63c186167
Alec Jacobson 11 years ago
parent
commit
4783f7505d
100 changed files with 102 additions and 101 deletions
  1. 1 0
      build/Makefile.conf
  2. 2 2
      examples/MatlabWorkspace/example.cpp
  3. 1 1
      examples/affine/Makefile
  4. 1 1
      examples/basic_topology/Makefile
  5. 1 1
      examples/beach-balls/Makefile
  6. 1 1
      examples/cat/Makefile
  7. 1 1
      examples/dmat/Makefile
  8. 1 1
      examples/eigen-gotchas/Makefile
  9. 1 1
      examples/example_fun/Makefile
  10. 1 1
      examples/example_fun/example.cpp
  11. 1 1
      examples/file_contents_as_string/Makefile
  12. 1 1
      examples/get_seconds/Makefile
  13. 1 1
      examples/glslversion/Makefile
  14. 1 1
      examples/glut_speed_test/Makefile
  15. 1 1
      examples/harwell_boeing/Makefile
  16. 1 1
      examples/is_dir/Makefile
  17. 1 1
      examples/marching_cubes/Makefile
  18. 1 1
      examples/meshio/Makefile
  19. 1 1
      examples/mode/Makefile
  20. 1 1
      examples/patches/Makefile
  21. 1 1
      examples/path_tests/Makefile
  22. 1 1
      examples/pathinfo/Makefile
  23. 1 1
      examples/principal_curvature/curvature.cpp
  24. 1 1
      examples/scene-rotation/trackball.h
  25. 2 2
      examples/slice/Makefile
  26. 1 1
      examples/sort/Makefile
  27. 1 1
      examples/sortrows/Makefile
  28. 1 1
      examples/stdin_to_temp/Makefile
  29. 1 1
      examples/svd/Makefile
  30. 1 1
      examples/trackball/Makefile
  31. 1 1
      examples/transpose_blocks/Makefile
  32. 1 1
      include/igl/EPS.cpp
  33. 1 1
      include/igl/EPS.h
  34. 1 1
      include/igl/ReAntTweakBar.h
  35. 1 1
      include/igl/active_set.cpp
  36. 1 1
      include/igl/active_set.h
  37. 1 1
      include/igl/add_barycenter.cpp
  38. 1 1
      include/igl/add_barycenter.h
  39. 1 1
      include/igl/adjacency_list.cpp
  40. 1 1
      include/igl/adjacency_list.h
  41. 1 1
      include/igl/adjacency_matrix.cpp
  42. 1 1
      include/igl/adjacency_matrix.h
  43. 1 1
      include/igl/all_edges.h
  44. 1 1
      include/igl/all_pairs_distances.cpp
  45. 1 1
      include/igl/all_pairs_distances.h
  46. 1 1
      include/igl/angular_distance.h
  47. 1 1
      include/igl/any_of.cpp
  48. 1 1
      include/igl/any_of.h
  49. 1 1
      include/igl/arap_linear_block.cpp
  50. 1 1
      include/igl/arap_linear_block.h
  51. 1 1
      include/igl/arap_rhs.h
  52. 1 1
      include/igl/areamatrix.cpp
  53. 1 1
      include/igl/areamatrix.h
  54. 1 1
      include/igl/avg_edge_length.cpp
  55. 1 1
      include/igl/avg_edge_length.h
  56. 1 1
      include/igl/axis_angle_to_quat.cpp
  57. 1 1
      include/igl/axis_angle_to_quat.h
  58. 1 1
      include/igl/barycenter.cpp
  59. 1 1
      include/igl/barycenter.h
  60. 1 1
      include/igl/barycentric2global.cpp
  61. 1 1
      include/igl/barycentric2global.h
  62. 1 1
      include/igl/barycentric_coordinates.cpp
  63. 1 1
      include/igl/barycentric_coordinates.h
  64. 1 1
      include/igl/basename.h
  65. 1 1
      include/igl/bbw/bbw.cpp
  66. 1 1
      include/igl/bbw/bbw.h
  67. 1 1
      include/igl/boost/bfs_orient.cpp
  68. 1 1
      include/igl/boost/bfs_orient.h
  69. 1 1
      include/igl/boost/components.cpp
  70. 1 1
      include/igl/boost/components.h
  71. 1 1
      include/igl/boost/manifold_patches.cpp
  72. 1 1
      include/igl/boost/manifold_patches.h
  73. 1 1
      include/igl/boundary_conditions.h
  74. 1 1
      include/igl/boundary_faces.cpp
  75. 1 1
      include/igl/boundary_faces.h
  76. 1 1
      include/igl/boundary_vertices_sorted.h
  77. 1 1
      include/igl/bounding_box_diagonal.cpp
  78. 1 1
      include/igl/bounding_box_diagonal.h
  79. 1 1
      include/igl/canonical_quaternions.cpp
  80. 1 1
      include/igl/canonical_quaternions.h
  81. 1 1
      include/igl/cat.cpp
  82. 1 1
      include/igl/cat.h
  83. 1 1
      include/igl/ceil.cpp
  84. 1 1
      include/igl/ceil.h
  85. 1 1
      include/igl/cgal/intersect_other.cpp
  86. 1 1
      include/igl/cgal/intersect_other.h
  87. 1 1
      include/igl/cgal/mesh_to_cgal_triangle_list.cpp
  88. 1 1
      include/igl/cgal/mesh_to_cgal_triangle_list.h
  89. 1 1
      include/igl/cgal/point_mesh_squared_distance.cpp
  90. 1 1
      include/igl/cgal/point_mesh_squared_distance.h
  91. 1 1
      include/igl/cgal/selfintersect.h
  92. 1 1
      include/igl/cocoa_key_to_anttweakbar_key.h
  93. 1 1
      include/igl/colon.cpp
  94. 1 1
      include/igl/colon.h
  95. 1 1
      include/igl/column_to_quats.h
  96. 1 1
      include/igl/columnize.cpp
  97. 1 1
      include/igl/columnize.h
  98. 1 1
      include/igl/comb_cross_field.cpp
  99. 1 1
      include/igl/comb_cross_field.h
  100. 1 1
      include/igl/comb_frame_field.cpp

+ 1 - 0
build/Makefile.conf

@@ -10,6 +10,7 @@ GG=g++
 #GG=g++-mp-4.3       15.5s
 #GG=g++-mp-4.7       19.9s
 
+CFLAGS += -DIGL_STATIC_LIBRARY
 CFLAGS += -Wall
 CFLAGS += -std=c++11
 

+ 2 - 2
examples/MatlabWorkspace/example.cpp

@@ -3,13 +3,13 @@
 #include <igl/readDMAT.h>
 #include <cstdio>
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 #  define IGL_HEADER_ONLY
 #  define IGL_HEADER_ONLY_WAS_NOT_DEFINED
 #endif
 #include <igl/matlab/MatlabWorkspace.h>
 #include <igl/on_boundary.h>
-#ifdef IGL_HEADER_ONLY_WAS_NOT_DEFINED
+#ifndef IGL_STATIC_LIBRARY_WAS_NOT_DEFINED
 #  undef IGL_HEADER_ONLY
 #endif
 

+ 1 - 1
examples/affine/Makefile

@@ -11,7 +11,7 @@ include ../../build/Makefile.conf
 igl_lib=../../
 eigen=$(DEFAULT_PREFIX)/include/eigen3
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/basic_topology/Makefile

@@ -7,7 +7,7 @@ include ../../build/Makefile.conf
 igl_lib=../../
 eigen_lib=$(DEFAULT_PREFIX)/include/eigen3/
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen_lib)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/beach-balls/Makefile

@@ -8,7 +8,7 @@ all: obj example
 
 .PHONY: example
 
-CFLAGS=-g -std=c++11
+CFLAGS+=-g -std=c++11
 
 LIBIGL=../../
 LIBIGL_INC=-I$(LIBIGL)/include

+ 1 - 1
examples/cat/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=$(DEFAULT_PREFIX)/include/eigen3/
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/dmat/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=$(DEFAULT_PREFIX)/include/eigen3
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/eigen-gotchas/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include $(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/example_fun/Makefile

@@ -7,7 +7,7 @@ include ../../build/Makefile.conf
 
 igl_lib=../../
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include
 
 STATIC_LIB=-ligl -L../../lib

+ 1 - 1
examples/example_fun/example.cpp

@@ -8,7 +8,7 @@ int main(int argc, char * argv[])
   example_fun(d);
   int i = 4;
   example_fun(i);
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
   const char * s = "string";
   example_fun(s);
 #endif

+ 1 - 1
examples/file_contents_as_string/Makefile

@@ -10,7 +10,7 @@ all: example
 
 igl_lib=../../
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/get_seconds/Makefile

@@ -10,7 +10,7 @@ all: example
 
 igl_lib=../../
 
-CFLAGS=-g -Wall
+CFLAGS+=-g -Wall
 inc=-I$(igl_lib)/include
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/glslversion/Makefile

@@ -10,7 +10,7 @@ all: example
 
 igl_lib=../../
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include
 lib=$(OPENGL_LIB) $(GLUT_LIB) -L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/glut_speed_test/Makefile

@@ -10,7 +10,7 @@ include ../../build/Makefile.conf
 
 igl_lib=../../
 
-CFLAGS=-g -Wall 
+CFLAGS+=-g -Wall 
 inc=-I$(igl_lib)/include
 lib=$(OPENGL_LIB) $(GLUT_LIB) -L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/harwell_boeing/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include $(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/is_dir/Makefile

@@ -10,7 +10,7 @@ all: example
 
 igl_lib=../../
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/marching_cubes/Makefile

@@ -11,7 +11,7 @@ include ../../build/Makefile.conf
 igl_lib=../../
 eigen=-I$(DEFAULT_PREFIX)/include/eigen3
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include $(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/meshio/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=-I$(DEFAULT_PREFIX)/include/eigen3
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include $(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/mode/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=$(DEFAULT_PREFIX)/include/eigen3/
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/patches/Makefile

@@ -8,7 +8,7 @@ all: obj example
 
 .PHONY: example
 
-CFLAGS=-g -std=c++11
+CFLAGS+=-g -std=c++11
 
 LIBIGL=../../
 LIBIGL_INC=-I$(LIBIGL)/include

+ 1 - 1
examples/path_tests/Makefile

@@ -10,7 +10,7 @@ all: example
 
 igl_lib=../../
 
-CFLAGS=-g -Wall
+CFLAGS+=-g -Wall
 inc=-I$(igl_lib)/include
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/pathinfo/Makefile

@@ -10,7 +10,7 @@ include ../../build/Makefile.conf
 
 igl_lib=../../
 
-CFLAGS=-g -Wall 
+CFLAGS+=-g -Wall 
 inc=-I$(igl_lib)/include
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/principal_curvature/curvature.cpp

@@ -1,5 +1,5 @@
 
-#define IGL_HEADER_ONLY
+#undef IGL_STATIC_LIBRARY
 #include <igl/principal_curvature.h>
 #include <igl/read_triangle_mesh.h>
 #include <iostream>

+ 1 - 1
examples/scene-rotation/trackball.h

@@ -83,4 +83,4 @@ axis_to_quat(float a[3], float phi, float q[4]);
 void quat_to_axis(float q[4], float axis[3], float &phi);
 void add_quats_no_renorm(float q1[4], float q2[4], float dest[4]);
 void quat_rotate_point(float q[4], const float p1[3], float p2[3]);
-////Olga////
+////Olga////

+ 2 - 2
examples/slice/Makefile

@@ -11,8 +11,8 @@ all: example
 igl_lib=../../
 eigen=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
 
-#CFLAGS=-g
-CFLAGS=-Os -DNDEBUG
+#CFLAGS+=-g
+CFLAGS+=-Os -DNDEBUG
 inc=-I$(igl_lib)/include $(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/sort/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=$(DEFAULT_PREFIX)/include/eigen3/
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/sortrows/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=$(DEFAULT_PREFIX)/include/eigen3/
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/stdin_to_temp/Makefile

@@ -10,7 +10,7 @@ all: example
 
 igl_lib=../../
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
examples/svd/Makefile

@@ -10,7 +10,7 @@ all: example
 
 igl_lib=../../
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include
 lib=-L$(igl_lib)/lib -ligl -framework Accelerate
 

+ 1 - 1
examples/trackball/Makefile

@@ -10,7 +10,7 @@ include ../../build/Makefile.conf
 
 igl_lib=../../
 
-CFLAGS=-g -Wall 
+CFLAGS+=-g -Wall 
 #deps=-MMD -MF depends.txt
 EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
 inc=-I$(igl_lib)/include $(EIGEN3_INC)

+ 1 - 1
examples/transpose_blocks/Makefile

@@ -11,7 +11,7 @@ all: example
 igl_lib=../../
 eigen=$(DEFAULT_PREFIX)/include/eigen3
 
-CFLAGS=-g
+CFLAGS+=-g
 inc=-I$(igl_lib)/include -I$(eigen)
 lib=-L$(igl_lib)/lib -ligl
 

+ 1 - 1
include/igl/EPS.cpp

@@ -25,6 +25,6 @@ template <> IGL_INLINE double igl::EPS_SQ()
   return igl::DOUBLE_EPS_SQ;
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 #endif

+ 1 - 1
include/igl/EPS.h

@@ -25,7 +25,7 @@ namespace igl
   template <> IGL_INLINE double EPS_SQ<double>();
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "EPS.cpp"
 #endif
 

+ 1 - 1
include/igl/ReAntTweakBar.h

@@ -275,7 +275,7 @@ namespace igl
 //TW_API int      TW_CALL TwRemoveVar(TwBar *bar, const char *name);
 //TW_API int      TW_CALL TwRemoveAllVars(TwBar *bar);
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "ReAntTweakBar.cpp"
 #endif
 

+ 1 - 1
include/igl/active_set.cpp

@@ -347,7 +347,7 @@ IGL_INLINE igl::SolverStatus igl::active_set(
 }
 
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template igl::SolverStatus igl::active_set<double, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, double, Eigen::Matrix<double, -1, 1, 0, -1, 1>, double, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> > const&, igl::active_set_params const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >&);
 #endif

+ 1 - 1
include/igl/active_set.h

@@ -106,7 +106,7 @@ struct igl::active_set_params
     {};
 };
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "active_set.cpp"
 #endif
 

+ 1 - 1
include/igl/add_barycenter.cpp

@@ -52,6 +52,6 @@ IGL_INLINE void igl::add_barycenter(
 }
 
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 #endif

+ 1 - 1
include/igl/add_barycenter.h

@@ -31,7 +31,7 @@ namespace igl
 
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "add_barycenter.cpp"
 #endif
 

+ 1 - 1
include/igl/adjacency_list.cpp

@@ -158,7 +158,7 @@ IGL_INLINE void igl::adjacency_list(
   
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 // generated by autoexplicit.sh
 template void igl::adjacency_list<Eigen::Matrix<int, -1, -1, 0, -1, -1>, int>(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&, bool);

+ 1 - 1
include/igl/adjacency_list.h

@@ -44,7 +44,7 @@ namespace igl
 
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "adjacency_list.cpp"
 #endif
 

+ 1 - 1
include/igl/adjacency_matrix.cpp

@@ -63,7 +63,7 @@ IGL_INLINE void igl::adjacency_matrix(
   }
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::adjacency_matrix<int>(Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, Eigen::SparseMatrix<int, 0, int>&);
 template void igl::adjacency_matrix<double>(Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, Eigen::SparseMatrix<double, 0, int>&);

+ 1 - 1
include/igl/adjacency_matrix.h

@@ -44,7 +44,7 @@ namespace igl
     Eigen::SparseMatrix<T>& A);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "adjacency_matrix.cpp"
 #endif
 

+ 1 - 1
include/igl/all_edges.h

@@ -27,7 +27,7 @@ namespace igl
     Eigen::MatrixXi & E);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "all_edges.cpp"
 #endif
 

+ 1 - 1
include/igl/all_pairs_distances.cpp

@@ -32,7 +32,7 @@ IGL_INLINE void igl::all_pairs_distances(
   }
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 // generated by autoexplicit.sh
 template void igl::all_pairs_distances<Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, bool, Eigen::Matrix<double, -1, -1, 0, -1, -1>&);

+ 1 - 1
include/igl/all_pairs_distances.h

@@ -34,7 +34,7 @@ namespace igl
     Mat & D);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "all_pairs_distances.cpp"
 #endif
 

+ 1 - 1
include/igl/angular_distance.h

@@ -23,7 +23,7 @@ namespace igl
     const Eigen::Quaterniond & B);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #include "angular_distance.cpp"
 #endif
 

+ 1 - 1
include/igl/any_of.cpp

@@ -13,7 +13,7 @@ IGL_INLINE bool igl::any_of(const Mat & S)
   return std::any_of(S.data(),S.data()+S.size(),[](bool s){return s;});
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template bool igl::any_of<Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::Matrix<int, -1, 1, 0, -1, 1> const&);
 #endif

+ 1 - 1
include/igl/any_of.h

@@ -18,7 +18,7 @@ namespace igl
   template <typename Mat>
   IGL_INLINE bool any_of(const Mat & S);
 }
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "any_of.cpp"
 #endif
 #endif

+ 1 - 1
include/igl/arap_linear_block.cpp

@@ -251,7 +251,7 @@ IGL_INLINE void igl::arap_linear_block_elements(
 }
 
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template IGL_INLINE void igl::arap_linear_block<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, double>(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, int, igl::ARAPEnergyType, Eigen::SparseMatrix<double, 0, int>&);
 #endif

+ 1 - 1
include/igl/arap_linear_block.h

@@ -71,7 +71,7 @@ namespace igl
     Eigen::SparseMatrix<Scalar> & Kd);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "arap_linear_block.cpp"
 #endif
 

+ 1 - 1
include/igl/arap_rhs.h

@@ -36,7 +36,7 @@ namespace igl
     const igl::ARAPEnergyType energy,
     Eigen::SparseMatrix<double>& K);
 }
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #include "arap_rhs.cpp"
 #endif
 #endif

+ 1 - 1
include/igl/areamatrix.cpp

@@ -50,7 +50,7 @@ IGL_INLINE void igl::areamatrix(
 	A = (aux + auxT)/2;
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::areamatrix<Eigen::Matrix<int, -1, -1, 0, -1, -1>, double>(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::SparseMatrix<double, 0, int>&);
 #endif

+ 1 - 1
include/igl/areamatrix.h

@@ -34,7 +34,7 @@ namespace igl
     Eigen::SparseMatrix<Scalar>& A);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "areamatrix.cpp"
 #endif
 

+ 1 - 1
include/igl/avg_edge_length.cpp

@@ -29,7 +29,7 @@ IGL_INLINE double igl::avg_edge_length(
   return avg / (double) count;
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 // generated by autoexplicit.sh
 template double igl::avg_edge_length<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&);

+ 1 - 1
include/igl/avg_edge_length.h

@@ -34,7 +34,7 @@ namespace igl
 
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "avg_edge_length.cpp"
 #endif
 

+ 1 - 1
include/igl/axis_angle_to_quat.cpp

@@ -33,7 +33,7 @@ IGL_INLINE void igl::axis_angle_to_quat(
     }
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 // generated by autoexplicit.sh
 template void igl::axis_angle_to_quat<double>(double const*, double, double*);

+ 1 - 1
include/igl/axis_angle_to_quat.h

@@ -26,7 +26,7 @@ namespace igl
     Q_type *out);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "axis_angle_to_quat.cpp"
 #endif
 

+ 1 - 1
include/igl/barycenter.cpp

@@ -31,7 +31,7 @@ IGL_INLINE void igl::barycenter(
   }
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit instanciation
 template void igl::barycenter<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, 4, 0, -1, 4> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 4, 0, -1, 4> >&);
 template void igl::barycenter<Eigen::Matrix<double, -1, 4, 0, -1, 4>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, 4, 0, -1, 4> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 4, 0, -1, 4> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 4, 0, -1, 4> >&);

+ 1 - 1
include/igl/barycenter.h

@@ -32,7 +32,7 @@ namespace igl
       Eigen::PlainObjectBase<DerivedBC> & BC);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "barycenter.cpp"
 #endif
 

+ 1 - 1
include/igl/barycentric2global.cpp

@@ -37,4 +37,4 @@ namespace igl
     }
     return R;
   }
-}
+}

+ 1 - 1
include/igl/barycentric2global.h

@@ -35,7 +35,7 @@ namespace igl
       const Eigen::Matrix<Scalar,Eigen::Dynamic,Eigen::Dynamic>  & bc);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "barycentric2global.cpp"
 #endif
 

+ 1 - 1
include/igl/barycentric_coordinates.cpp

@@ -82,6 +82,6 @@ IGL_INLINE void igl::barycentric_coordinates(
   L.array().colwise() /= dblA.array();
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 template void igl::barycentric_coordinates<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
 #endif

+ 1 - 1
include/igl/barycentric_coordinates.h

@@ -61,7 +61,7 @@ namespace igl
 
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "barycentric_coordinates.cpp"
 #endif
 

+ 1 - 1
include/igl/basename.h

@@ -22,7 +22,7 @@ namespace igl
   IGL_INLINE std::string basename(const std::string & path);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "basename.cpp"
 #endif
 

+ 1 - 1
include/igl/bbw/bbw.cpp

@@ -209,7 +209,7 @@ IGL_INLINE bool igl::bbw(
   return true;
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template bool igl::bbw<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, igl::BBWData&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
 #endif

+ 1 - 1
include/igl/bbw/bbw.h

@@ -88,7 +88,7 @@ namespace igl
     Eigen::PlainObjectBase<DerivedW> & W);
 }
   
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "bbw.cpp"
 #endif
 

+ 1 - 1
include/igl/boost/bfs_orient.cpp

@@ -95,7 +95,7 @@ IGL_INLINE void igl::bfs_orient(
   // make sure flip is OK if &FF = &F
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::bfs_orient<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
 #endif

+ 1 - 1
include/igl/boost/bfs_orient.h

@@ -29,7 +29,7 @@ namespace igl
     Eigen::PlainObjectBase<DerivedFF> & FF,
     Eigen::PlainObjectBase<DerivedC> & C);
 };
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "bfs_orient.cpp"
 #endif
 

+ 1 - 1
include/igl/boost/components.cpp

@@ -50,7 +50,7 @@ IGL_INLINE void igl::components(
   return components(A,C);
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::components<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&);
 #endif

+ 1 - 1
include/igl/boost/components.h

@@ -36,7 +36,7 @@ namespace igl
 
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "components.cpp"
 #endif
 

+ 1 - 1
include/igl/boost/manifold_patches.cpp

@@ -90,7 +90,7 @@ IGL_INLINE void igl::manifold_patches(
 
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::manifold_patches<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>, int>(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1> >&, Eigen::SparseMatrix<int, 0, int>&);
 #endif

+ 1 - 1
include/igl/boost/manifold_patches.h

@@ -31,7 +31,7 @@ namespace igl
     Eigen::PlainObjectBase<DerivedC> & C,
     Eigen::SparseMatrix<AScalar> & A);
 };
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "manifold_patches.cpp"
 #endif
 #endif

+ 1 - 1
include/igl/boundary_conditions.h

@@ -40,7 +40,7 @@ namespace igl
     Eigen::MatrixXd & bc);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "boundary_conditions.cpp"
 #endif
 

+ 1 - 1
include/igl/boundary_faces.cpp

@@ -131,7 +131,7 @@ Ret igl::boundary_faces(
 #endif
 
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::boundary_faces<Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&);
 template void igl::boundary_faces<int, int>(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&);

+ 1 - 1
include/igl/boundary_faces.h

@@ -49,7 +49,7 @@ namespace igl
 #endif
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "boundary_faces.cpp"
 #endif
 

+ 1 - 1
include/igl/boundary_vertices_sorted.h

@@ -29,7 +29,7 @@ namespace igl
     Eigen::VectorXi& bnd);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "boundary_vertices_sorted.cpp"
 #endif
 

+ 1 - 1
include/igl/bounding_box_diagonal.cpp

@@ -22,6 +22,6 @@ IGL_INLINE double igl::bounding_box_diagonal(
   return sqrt((maxV-minV).array().square().sum());
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template instanciation
 #endif

+ 1 - 1
include/igl/bounding_box_diagonal.h

@@ -21,7 +21,7 @@ namespace igl
   IGL_INLINE double bounding_box_diagonal( const Eigen::MatrixXd & V);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "bounding_box_diagonal.cpp"
 #endif
 

+ 1 - 1
include/igl/canonical_quaternions.cpp

@@ -16,6 +16,6 @@ template <> IGL_INLINE double igl::CANONICAL_VIEW_QUAT<double>(int i, int j)
   return (double)igl::CANONICAL_VIEW_QUAT_D[i][j];
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 #endif

+ 1 - 1
include/igl/canonical_quaternions.h

@@ -122,7 +122,7 @@ namespace igl
 
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "canonical_quaternions.cpp"
 #endif
 

+ 1 - 1
include/igl/cat.cpp

@@ -143,7 +143,7 @@ IGL_INLINE void cat(const std::vector<std::vector< Mat > > & A, Mat & C)
   }
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 // generated by autoexplicit.sh
 template Eigen::Matrix<double, -1, -1, 0, -1, -1> igl::cat<Eigen::Matrix<double, -1, -1, 0, -1, -1> >(int, Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<double, -1, -1, 0, -1, -1> const&);

+ 1 - 1
include/igl/cat.h

@@ -64,7 +64,7 @@ namespace igl
   IGL_INLINE void cat(const std::vector<std::vector< Mat > > & A, Mat & C);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "cat.cpp"
 #endif
 

+ 1 - 1
include/igl/ceil.cpp

@@ -27,7 +27,7 @@ IGL_INLINE void igl::ceil(
   Y = X.unaryExpr([](const Scalar &x)->Scalar{return std::ceil(x);}).template cast<typename DerivedY::Scalar >();
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit instanciation
 template void igl::ceil<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
 #endif

+ 1 - 1
include/igl/ceil.h

@@ -23,7 +23,7 @@ namespace igl
     Eigen::PlainObjectBase<DerivedY>& Y);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "ceil.cpp"
 #endif
 

+ 1 - 1
include/igl/cgal/intersect_other.cpp

@@ -129,6 +129,6 @@ IGL_INLINE void igl::intersect_other(
 
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 #endif

+ 1 - 1
include/igl/cgal/intersect_other.h

@@ -45,7 +45,7 @@ namespace igl
     Eigen::MatrixXi & IF);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "intersect_other.cpp"
 #endif
   

+ 1 - 1
include/igl/cgal/mesh_to_cgal_triangle_list.cpp

@@ -33,7 +33,7 @@ IGL_INLINE void igl::mesh_to_cgal_triangle_list(
   }
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::mesh_to_cgal_triangle_list<CGAL::Epeck>(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, std::vector<CGAL::Triangle_3<CGAL::Epeck>, std::allocator<CGAL::Triangle_3<CGAL::Epeck> > >&);
 template void igl::mesh_to_cgal_triangle_list<CGAL::Epick>(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<int, -1, -1, 0, -1, -1> const&, std::vector<CGAL::Triangle_3<CGAL::Epick>, std::allocator<CGAL::Triangle_3<CGAL::Epick> > >&);

+ 1 - 1
include/igl/cgal/mesh_to_cgal_triangle_list.h

@@ -28,7 +28,7 @@ namespace igl
     const Eigen::MatrixXi & F,
     std::vector<CGAL::Triangle_3<Kernel> > & T);
 }
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "mesh_to_cgal_triangle_list.cpp"
 #endif
 

+ 1 - 1
include/igl/cgal/point_mesh_squared_distance.cpp

@@ -56,7 +56,7 @@ IGL_INLINE void igl::point_mesh_squared_distance(
   }
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::point_mesh_squared_distance<CGAL::Epeck>( const Eigen::MatrixXd & P, const Eigen::MatrixXd & V, const Eigen::MatrixXi & F, Eigen::VectorXd & sqrD, Eigen::VectorXi & I, Eigen::MatrixXd & C);
 

+ 1 - 1
include/igl/cgal/point_mesh_squared_distance.h

@@ -37,7 +37,7 @@ namespace igl
     Eigen::VectorXi & I,
     Eigen::MatrixXd & C);
 }
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "point_mesh_squared_distance.cpp"
 #endif
 

+ 1 - 1
include/igl/cgal/selfintersect.h

@@ -64,7 +64,7 @@ namespace igl
     Eigen::VectorXi & IM);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "selfintersect.cpp"
 #endif
   

+ 1 - 1
include/igl/cocoa_key_to_anttweakbar_key.h

@@ -22,7 +22,7 @@ namespace igl
   IGL_INLINE int cocoa_key_to_anttweakbar_key(int key);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "cocoa_key_to_anttweakbar_key.cpp"
 #endif
 

+ 1 - 1
include/igl/colon.cpp

@@ -75,7 +75,7 @@ IGL_INLINE Eigen::Matrix<T,Eigen::Dynamic,1> igl::colon(
   return I;
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 // generated by autoexplicit.sh
 template Eigen::Matrix<int, -1, 1, 0, -1, 1> igl::colon<int, int, int>(int, int);

+ 1 - 1
include/igl/colon.h

@@ -52,7 +52,7 @@ namespace igl
     const H hi);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "colon.cpp"
 #endif
 

+ 1 - 1
include/igl/column_to_quats.h

@@ -27,7 +27,7 @@ namespace igl
       Eigen::Quaterniond,Eigen::aligned_allocator<Eigen::Quaterniond> > & vQ);
 }
 
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "columns_to_quats.cpp"
 #endif
 

+ 1 - 1
include/igl/columnize.cpp

@@ -54,7 +54,7 @@ IGL_INLINE void igl::columnize(
 }
 
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 template void igl::columnize<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, int, int, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >&);
 template void igl::columnize<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, int, int, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);

+ 1 - 1
include/igl/columnize.h

@@ -35,7 +35,7 @@ namespace igl
     const int dim,
     Eigen::PlainObjectBase<DerivedB> & B);
 }
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #  include "columnize.cpp"
 #endif
 #endif

+ 1 - 1
include/igl/comb_cross_field.cpp

@@ -140,6 +140,6 @@ IGL_INLINE void igl::comb_cross_field(const Eigen::PlainObjectBase<DerivedV> &V,
   cmb.comb(PD1out, PD2out);
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 #endif

+ 1 - 1
include/igl/comb_cross_field.h

@@ -34,7 +34,7 @@ namespace igl
                                    Eigen::PlainObjectBase<DerivedV> &PD1out,
                                    Eigen::PlainObjectBase<DerivedV> &PD2out);
 }
-#ifdef IGL_HEADER_ONLY
+#ifndef IGL_STATIC_LIBRARY
 #include "comb_cross_field.cpp"
 #endif
 

+ 1 - 1
include/igl/comb_frame_field.cpp

@@ -69,7 +69,7 @@ IGL_INLINE void igl::comb_frame_field(const Eigen::PlainObjectBase<DerivedV> &V,
   //    PD2_combed = BIS2_combed;
 }
 
-#ifndef IGL_HEADER_ONLY
+#ifdef IGL_STATIC_LIBRARY
 // Explicit template specialization
 #endif
 

Some files were not shown because too many files changed in this diff