ublas/IDEs/qtcreator/test/configuration.pri
Joaquim Duran 96c2547a1f Fixed issues in Qt build system:
- Fixed libraries and include paths.

- In windows, the filename of the tests programs (to be executed after compilation) has been fixed.

- In windows, all tests programs and benchmark programs are compiled as console programs.

- In windows, the warning C4996 has been disabled.

- In windows, asyncronous exceptions are captured in comp_mat_erase test.
2015-10-25 02:31:06 +01:00

56 lines
1.4 KiB
Plaintext

CONFIG -= qt
CONFIG += \
depend_includepath \
debug
win*: CONFIG += console
QMAKE_CXXFLAGS += -fno-inline
# Create a directory for each test.
DESTDIR = $${TARGET}
OBJECTS_DIR = $${TARGET}
UBLAS_TESTSET = \
USE_DOUBLE USE_STD_COMPLEX \
USE_RANGE USE_SLICE \
USE_UNBOUNDED_ARRAY USE_STD_VECTOR USE_BOUNDED_VECTOR USE_MATRIX
UBLAS_TESTSET_SPARSE = \
USE_DOUBLE USE_STD_COMPLEX \
USE_UNBOUNDED_ARRAY \
USE_MAP_ARRAY USE_STD_MAP \
USE_MAPPED_VECTOR USE_COMPRESSED_VECTOR \
USE_MAPPED_MATRIX USE_COMPRESSED_MATRIX
# USE_RANGE USE_SLICE # Too complex for regression testing
UBLAS_TESTSET_SPARSE_COO = \
USE_DOUBLE USE_STD_COMPLEX \
USE_UNBOUNDED_ARRAY \
USE_COORDINATE_VECTOR \
USE_COORDINATE_MATRIX
DEFINES += BOOST_UBLAS_NO_EXCEPTIONS
win*: DEFINES += _SCL_SECURE_NO_WARNINGS
#Visual age IBM
xlc: DEFINES += BOOST_UBLAS_NO_ELEMENT_PROXIES
# ublas include and test directory are included
INCLUDEPATH += \
../../../include \
../../../test
# If ublas tests are build with boost source code then,
# then boost headers and boost libraries should be used.
exists(../../../../../../boost-build.jam) {
INCLUDEPATH += ../../../../../..
LIBS += -L../../../../../../stage/lib
QMAKE_RPATHDIR += ../../../../../../stage/lib
}
# Execute test once compiled.
win*: QMAKE_POST_LINK = .\\$${DESTDIR}\\$${TARGET}.exe
else: QMAKE_POST_LINK = ./$${DESTDIR}/$${TARGET}