summaryrefslogtreecommitdiff
path: root/opencsg.pri
blob: 9713410d19f3c19296c27a5a552a25867ca21f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
opencsg {
  DEFINES += ENABLE_OPENCSG
  CONFIG += glew
  include(glew.pri)

  HEADERS += src/OpenCSGRenderer.h
  SOURCES += src/OpenCSGRenderer.cc

  isEmpty(OPENSCAD_LIBDIR) {
    # Optionally specify location of OpenCSG using the 
    # OPENCSGDIR env. variable
    OPENCSG_DIR = $$(OPENCSGDIR)
    !isEmpty(OPENCSG_DIR) {
      QMAKE_INCDIR += $$OPENCSG_DIR/include
      QMAKE_LIBDIR += $$OPENCSG_DIR/lib
      message("OpenCSG location: $$OPENCSG_DIR")
    }
  }

  LIBS += -lopencsg
}
contact: Jan Huwald // Impressum