OpenCV

From ImageWiki

(Difference between revisions)
Jump to: navigation, search
(Hvordan benyttes OpenCV?)
Line 22: Line 22:
  CXXFLAGS = `pkg-config ersp --cflags` -Wall
  CXXFLAGS = `pkg-config ersp --cflags` -Wall
  LIBS    = `pkg-config ersp --libs`
  LIBS    = `pkg-config ersp --libs`
-
 
+
-
  # Main executable
+
  # Name of executable
  EXECUTABLE = myprogram
  EXECUTABLE = myprogram
-
 
+
  # Files
  # Files
  SOURCES = myprogram.cc myauxilaryfunction.cc
  SOURCES = myprogram.cc myauxilaryfunction.cc
  OBJECTS = $(patsubst %.cc, %.o, $(SOURCES))
  OBJECTS = $(patsubst %.cc, %.o, $(SOURCES))
-
 
+
-
  ## Compile everything ##
+
  # Linking
  all: $(OBJECTS)
  all: $(OBJECTS)
  $(CXX) $(LIBS) $(OBJECTS) -o $(EXECUTABLE)
  $(CXX) $(LIBS) $(OBJECTS) -o $(EXECUTABLE)
-
 
+
-
  # Compilation.
+
  # Compilation
  %.o : %.cc
  %.o : %.cc
  $(CXX) $(CXXFLAGS) -c $^
  $(CXX) $(CXXFLAGS) -c $^

Revision as of 11:50, 9 July 2006

Personal tools