openmp.prf 690 Bytes
Newer Older
1 2 3 4 5 6 7
# This configuration file is part of ALTA library
#
# It provides Qt with the configuration necessary to compile plugins
# using OpenMP. This .prf file works under Ubuntu/debian, but must 
# be updated for other OS/distributions.
#

8 9
unix:!macx {
	CONFIG += openmp
10

11 12 13
	QMAKE_CXXFLAGS += -fopenmp
	LIBS += -lgomp
}
14 15 16 17

macx {
	exists(/opt/local/bin/gcc-mp-4.9) {
		CONFIG += openmp
18 19 20

		QMAKE_CXX  = /opt/local/bin/gcc-mp-4.9
		QMAKE_LINK = /opt/local/bin/gcc-mp-4.9
21
		QMAKE_CXXFLAGS += -fopenmp
22 23 24 25
		QMAKE_CXXFLAGS -= -Xarch_x86_64
		QMAKE_LFLAGS   += -fopenmp
		QMAKE_LFLAGS   -= -Xarch_x86_64
		LIBS += -L/opt/local/lib/libgcc -lstdc++
26 27 28 29
	} else {
		warning("No OpenMP compliant compiler found")
	}
}