qmake: flexible build paths

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/1/head
Thorsten Liebig 2012-12-03 14:22:25 +01:00
parent e6c0444985
commit 2c8dcb7089
2 changed files with 19 additions and 8 deletions

View File

@ -8,7 +8,9 @@ VERSION = 0.1.0
win32 { win32 {
CONFIG += console CONFIG += console
isEmpty(WIN32_LIB_ROOT) {
WIN32_LIB_ROOT = ../.. WIN32_LIB_ROOT = ../..
}
# #3rd party libraries# # #3rd party libraries#
# tinyxml # tinyxml

View File

@ -31,10 +31,15 @@ VERSION=0.0.29
win32 { win32 {
CONFIG += console CONFIG += console
isEmpty(WIN32_LIB_ROOT) {
WIN32_LIB_ROOT = .. WIN32_LIB_ROOT = ..
}
isEmpty(CSXCAD_ROOT) {
CSXCAD_ROOT = $$WIN32_LIB_ROOT/CSXCAD
}
# CSXCAD # CSXCAD
INCLUDEPATH += $$WIN32_LIB_ROOT/CSXCAD INCLUDEPATH += $$CSXCAD_ROOT/include/CSXCAD
LIBS += -L$$WIN32_LIB_ROOT/CSXCAD/release -lCSXCAD0 LIBS += -L$$CSXCAD_ROOT/lib -lCSXCAD0
# #3rd party libraries# # #3rd party libraries#
# tinyxml # tinyxml
@ -58,19 +63,23 @@ win32 {
LIBS += -L$$WIN32_LIB_ROOT/vtk/bin -lvtkCommon -lvtkIO -lvtkFiltering LIBS += -L$$WIN32_LIB_ROOT/vtk/bin -lvtkCommon -lvtkIO -lvtkFiltering
} }
!win32 { !win32 {
# CSXCAD
isEmpty(CSXCAD_ROOT) {
CSXCAD_ROOT = /usr
}
INCLUDEPATH += $$CSXCAD_ROOT/include/CSXCAD
LIBS += -L$$CSXCAD_ROOT/lib -lCSXCAD
# #3rd party libraries#
LIBS += -lfparser LIBS += -lfparser
LIBS += -ltinyxml LIBS += -ltinyxml
DEFINES += TIXML_USE_STL DEFINES += TIXML_USE_STL
LIBS += -lboost_thread-mt LIBS += -lboost_thread-mt
LIBS += -lCGAL LIBS += -lCGAL
LIBS += -llapack
# hdf5 (and mpi for parallel hdf5) # hdf5 (and mpi for parallel hdf5)
LIBS += -lhdf5_hl -lhdf5 LIBS += -lhdf5_hl -lhdf5
LIBS += -lmpi -lmpi_cxx LIBS += -lmpi -lmpi_cxx
INCLUDEPATH += /usr/include/mpi INCLUDEPATH += /usr/include/mpi
# CSXCAD
INCLUDEPATH += ../CSXCAD
LIBS += -L../CSXCAD -lCSXCAD
### vtk ### ### vtk ###
INCLUDEPATH += /usr/include/vtk-5.2 \ INCLUDEPATH += /usr/include/vtk-5.2 \
/usr/include/vtk-5.4 \ /usr/include/vtk-5.4 \