forked from Chaste/template_project_history
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (26 loc) · 1.63 KB
/
CMakeLists.txt
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
# Example CMake build configuration file for a Chaste user project.
# See also https://chaste.cs.ox.ac.uk/trac/wiki/ChasteGuides/CmakeBuildGuide for full documentation.
# You can set which Chaste components (or other projects) your project depends on by editing the
# find_package() call for Chaste. E.g.
# find_package(Chaste COMPONENTS cell_based)
# for a project just using the cell_based component (and its dependencies), or
# find_package(Chaste COMPONENTS heart lung)
# for a project combining heart & lung simulations.
#
# Note that the order in which components are specified does not matter.
# Here we just depend on core components (nothing application-specific).
find_package(Chaste COMPONENTS heart)
# Alternatively, to specify a Chaste installation directory use a line like that below.
# This is needed if your project is not contained in the projects folder within a Chaste source tree.
#find_package(Chaste COMPONENTS heart crypt PATHS /path/to/chaste-install NO_DEFAULT_PATH)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
# Include the Python wrapping build logic
include(${CMAKE_CURRENT_SOURCE_DIR}/WrapPython.cmake)
# Here we add extra arguments to force PyCML to use this extra argument (make Get and Set methods for
# all metadata annotated variables).
set(Chaste_PYCML_EXTRA_ARGS "--expose-annotated-variables" "--assume-valid" "--cvode-data-clamp")
# Trying to make it find DataClamp files/functions - RJ
#include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/cellml/cellml)
# Change the project name in the line below to match the folder this file is in,
# i.e. the name of your project.
chaste_do_project(PyAP)