File: sofa-default.cfg

package info (click to toggle)
sofa-framework 1.0~beta4-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 88,624 kB
  • sloc: cpp: 151,120; ansic: 2,387; xml: 581; sh: 436; makefile: 67
file content (131 lines) | stat: -rw-r--r-- 4,235 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
##################################
# SOFA COMPILATION CONFIGURATION #
##################################
# Copy to sofa-local.cfg and modify it to change local options


########################################################################
# Type used in SOFA: if none specified, both will be available
########################################################################
# Uncomment if you want to compile Sofa using only float
#DEFINES += SOFA_FLOAT

# Uncomment if you want to compile Sofa using only double
#DEFINES += SOFA_DOUBLE

########################################################################
# Viewers
########################################################################
# Uncomment if you want to compile Qt interface
  DEFINES += SOFA_GUI_QTVIEWER

# Uncomment if you want to compile QTOgreViewer interface
# DEFINES += SOFA_GUI_QTOGREVIEWER

# Uncomment if you want to compile QGLViewer interface
# DEFINES += SOFA_GUI_QGLVIEWER

# Uncomment if you want to compile GLUT interface
DEFINES += SOFA_GUI_GLUT


########################################################################
# Optional components
########################################################################
# Uncomment if you want to use RTDSC processor cycle-counter for timing
# Note: this is the fastest and most precise method but have issues on
# multi-CPUs or with varying CPU frequencies
# DEFINES += SOFA_RDTSC

# Uncomment if you want to use libPNG to read/write PNG images
DEFINES += SOFA_HAVE_PNG

# Uncomment if you want to use GLEW to handle OpenGL extensions
DEFINES += SOFA_HAVE_GLEW

# Uncomment if you want to use FlowVR / FlowVR Render for distributed computing
# DEFINES += SOFA_HAVE_FLOWVR

# Uncomment if you want to use Boost lib for multithread computing
 DEFINES += SOFA_HAVE_BOOST

# Uncomment if you want to compile CUDA GPU prototype (require NVIDIA CUDA SDK)
# DEFINES += SOFA_GPU_CUDA

# Uncomment to set specific flags, such as architecture corresponding to your GPU
# (sm_10 for G80, sm_11 for G92, sm_13 for GT200)
#CUDA_FLAGS += --ptxas-options=-v -arch sm_10

# Uncomment if you want to activate double-precision support in CUDA
# (requires GT200+ GPU and -arch sm_13 flag)
# DEFINES += SOFA_GPU_CUDA_DOUBLE

# Uncomment if you want to use SofaPML to load PML and LML files
DEFINES += SOFA_PML

# Uncomment if you want to use LAPACK for Matrix Solvers
# DEFINES += SOFA_HAVE_LAPACK

# Uncomment if you want to use MKL for Matrix Solvers
#DEFINES += SOFA_HAVE_MKL
#MKL_PATH = "C:\Progra~1\Intel\MKL\9.1.027"

# Uncomment if you want to use Sensable Phantom
#DEFINES += SOFA_HAVE_SENSABLE

# Uncomment if you want to use Sensable Phantom with CHAI3D
# DEFINES += SOFA_HAVE_CHAI3D

# Uncomment if you want to support moving frames when computing inertia forces in Mass
 DEFINES += SOFA_SUPPORT_MOVING_FRAMES

# Uncomment if you want to have the possibility to trave the visitor execution
DEFINES += DUMP_VISITOR_INFO

# Uncomment if you want to use LibXML instead of built-in TinyXML
# DEFINES += SOFA_XML_PARSER_LIBXML

# Uncomment if you want to use csparse
# DEFINES += SOFA_HAVE_CSPARSE


# Uncomment if you want to use METIS
# Note that it is not bundled with SOFA and must be installed first
# DEFINES += SOFA_HAVE_METIS


# Uncomment if you want to use TAUCS (C library of sparse linear solvers)
# Note that it is not bundled with SOFA and must be installed first
# DEFINES += SOFA_HAVE_TAUCS


########################################################################
# Compiler options
########################################################################

win32{
#  CONFIG = debug_and_release
}
else{
  # Choose if you want to compile the debug or release version
#CONFIG = debug
CONFIG = release
QMAKE_CXXFLAGS_RELEASE += -O1
QMAKE_CXXFLAGS += -W
QMAKE_CFLAGS += -W

  # Uncomment if you want debug symbols even in release build
  # QMAKE_CXXFLAGS += -g

  # Uncomment if you want to be able to profile the code using gprof
  # QMAKE_CXXFLAGS *= -pg
  # QMAKE_LDFLAGS *= -pg
  # QMAKE_LFLAGS_DEBUG *= -pg
  # QMAKE_LFLAGS_RELEASE *= -pg

  # Change to use different version of the compiler
  QMAKE_CC         = gcc
  QMAKE_CXX        = g++
  QMAKE_LINK       = g++
  QMAKE_LINK_SHLIB = g++
}