~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Code/Numerics/FEM/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-05-31 12:07:29 UTC
  • mfrom: (3.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080531120729-7g7layn480le43ko
Tags: 3.6.0-3
* debian/patches/gccxml-workaround.patch: New.  Work around gccxml issue
  with #include_next; c.f. http://www.gccxml.org/Bug/view.php?id=7134.  
* debian/patches/gcc43.patch: include <cstring> in itkNeighbourhood.h.
  This only showed up in the tcl wrapping step.

* Above two entries fix FTBFS for GCC 4.3-based systems.
  Closes: #478500.

* debian/patches/sharedforward.patch: New.  Ensure that linux/sparc
  systems are not also configured as a SUN sparc system, which requires
  SUN header sys/isa_defs.h.  Closes: #478940, #483312.

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
  SET(FEM_SRCS ${FEM_SRCS};ReadMe.txt;ToDo.txt)
168
168
ENDIF(CMAKE_BUILD_TOOL MATCHES ".*dev")
169
169
 
170
 
  
 
170
# Avoid anachronism warnings by Sun compilers
 
171
INCLUDE(${ITK_SOURCE_DIR}/CMake/itkCheckCXXAcceptsFlags.cmake)
 
172
itkCHECK_CXX_ACCEPTS_FLAGS("-features=no%anachronisms" SUN_COMPILER)
 
173
IF(SUN_COMPILER)
 
174
  ADD_DEFINITIONS("-w")
 
175
ENDIF(SUN_COMPILER)
 
176
 
171
177
# Define source groups that look nice in DSP files
172
178
SOURCE_GROUP("Elements" REGULAR_EXPRESSION itkFEMElement*)
173
179
SOURCE_GROUP("Nodes" REGULAR_EXPRESSION itkFEMNode*)
181
187
# Build the library
182
188
ADD_LIBRARY(ITKFEM ${FEM_SRCS})
183
189
TARGET_LINK_LIBRARIES(ITKFEM 
184
 
                      ITKNumerics
185
 
                      ITKCommon
186
190
                      ITKBasicFilters
187
191
                      ITKIO)
188
192
IF(UNIX)