Core.pro 1.06 KB
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1 2 3 4
################################################################################
#
################################################################################

5 6 7 8
include( $$TOPDIR/qmake/all.include )

Library()

Jan Möbius's avatar
Jan Möbius committed
9
contains( OPENFLIPPER , OpenFlipper ){
10
	DESTDIR = $${TOPDIR}/OpenMesh/lib
Jan Möbius's avatar
Jan Möbius committed
11
} else {
12
	DESTDIR = $${TOPDIR}/lib
Jan Möbius's avatar
Jan Möbius committed
13 14 15 16 17 18 19 20
}


DIRECTORIES = . Geometry IO IO/exporter IO/importer IO/reader IO/writer \
		Mesh Mesh/gen System Utils

INCLUDEPATH += ../..

21 22 23 24 25 26
CONFIG( debug, debug|release ){
        TARGET    = OpenMeshCored
} else {
	TARGET    = OpenMeshCore
}

Jan Möbius's avatar
Jan Möbius committed
27 28 29 30 31
win32 {
 DEFINES += _USE_MATH_DEFINES NOMINMAX
 CONFIG  += static
}

32
macx {
33
      # Set library binary header to the correct path
34
      QMAKE_LFLAGS_SONAME = -install_name$${LITERAL_WHITESPACE}$${DESTDIR}/
35 36 37
      export(QMAKE_LFLAGS_SONAME)
}

Jan Möbius's avatar
Jan Möbius committed
38 39 40 41 42 43
# Input
HEADERS += $$getFilesFromDir($$DIRECTORIES,*.hh)
SOURCES += $$getFilesFromDir($$DIRECTORIES,*.cc)
FORMS   += $$getFilesFromDir($$DIRECTORIES,*.ui)

################################################################################