Tools.pro 1.16 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 = . Decimater Smoother Subdivider/Adaptive/Composite \
        	Subdivider/Uniform/Composite Subdivider/Uniform \
		Utils

INCLUDEPATH += ../..

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

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 44 45
# Input
HEADERS += $$getFilesFromDir($$DIRECTORIES,*.hh)
SOURCES += $$getFilesFromDir($$DIRECTORIES,*.c)
SOURCES += $$getFilesFromDir($$DIRECTORIES,*.cc) 
FORMS   += $$getFilesFromDir($$DIRECTORIES,*.ui)


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