~ubuntu-branches/ubuntu/wily/yade/wily

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Dmitry Shachnev
  • Date: 2014-11-14 12:54:52 UTC
  • mfrom: (20.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20141114125452-t16anreumu4ybg2s
Tags: 1.12.0-2ubuntu1
Add allow-stderr restriction to autopkgtest, to silence a warning
printed by new matplotlib.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cMake")
29
29
 
30
 
INCLUDE(FindPythonLibs)
31
30
INCLUDE(FindPythonInterp)
32
31
INCLUDE(FindOpenMP)
33
32
INCLUDE(FindQt4)
64
63
#===========================================================
65
64
 
66
65
SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -std=c++0x")
 
66
INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR})
 
67
#===========================================================
67
68
 
68
69
#===========================================================
69
70
 
105
106
 
106
107
#===========================================================
107
108
FIND_PACKAGE(NumPy REQUIRED)
108
 
  INCLUDE_DIRECTORIES(${NUMPY_INCLUDE_DIRS})
 
109
INCLUDE_DIRECTORIES(${NUMPY_INCLUDE_DIRS})
109
110
 
110
111
FIND_PACKAGE(Loki REQUIRED)
111
 
  INCLUDE_DIRECTORIES(${LOKI_INCLUDE_DIR})
 
112
INCLUDE_DIRECTORIES(${LOKI_INCLUDE_DIR})
 
113
 
112
114
FIND_PACKAGE(Eigen3 REQUIRED)
113
115
FIND_PACKAGE(BZip2 REQUIRED)
114
116
FIND_PACKAGE(ZLIB REQUIRED)
 
117
 
 
118
SET(Python_ADDITIONAL_VERSIONS 2.7)
 
119
FIND_PACKAGE(PythonLibs REQUIRED)
 
120
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
115
121
#===========================================================
116
122
 
117
123
SET(DEFAULT ON CACHE INTERNAL "Default value for enabled by default options")
168
174
     ((Boost_MINOR_VERSION EQUAL 53) OR (Boost_MINOR_VERSION GREATER 53)))
169
175
#===========================================================
170
176
IF(ENABLE_VTK)
171
 
  FIND_PACKAGE(VTK) 
 
177
  FIND_PACKAGE(VTK COMPONENTS vtkCommonCore vtkIOImage vtkIOXML)
172
178
  IF(VTK_FOUND)
173
179
    INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
174
180
    LINK_DIRECTORIES( ${VTK_LIBRARY_DIRS} )
422
428
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/py")
423
429
#===========================================================
424
430
 
425
 
# this is only a temporary hack, headers should be installed in the build-dir directly
426
 
# perhaps there is a proper way, have to ask
427
 
IF(NOT EXISTS "${CMAKE_BINARY_DIR}/yade")
428
 
  EXECUTE_PROCESS(COMMAND ln -s ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}/yade)
429
 
ENDIF ()
430
 
#===========================================================
431
 
 
432
431
FILE(GLOB SRC_CORE "core/*.cpp")
433
432
FILE(GLOB_RECURSE SRC_PKG  "pkg/*.cpp")
434
433
FILE(GLOB SRC_LIB  "lib/*.cpp")
504
503
# Create header files for PFV from FlowEngine.hpp.in-template.
505
504
# All @TEMPLATE_FLOW_NAME@ are replacing by a given names
506
505
 
507
 
SET (TEMPLATE_FLOW_NAMES DFNFlowEngineT DummyFlowEngineT FlowEngineT FlowEngine_PeriodicInfo SoluteFlowEngineT)
 
506
SET (TEMPLATE_FLOW_NAMES DFNFlowEngineT DummyFlowEngineT FlowEngineT FlowEngine_PeriodicInfo SoluteFlowEngineT UnsaturatedEngineT TwoPhaseFlowEngineT)
508
507
FOREACH(TF ${TEMPLATE_FLOW_NAMES})
509
508
  SET (TEMPLATE_FLOW_NAME ${TF})
510
509
  CONFIGURE_FILE(pkg/pfv/FlowEngine.hpp.in "${CMAKE_BINARY_DIR}/pkg/pfv/FlowEngine_${TF}.hpp" @ONLY)