Commit c511bb57 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[cmake] Add module to find pvpython, which can be used to run postprocessing scripts

parent 67112438
......@@ -4,7 +4,10 @@ set(modules
DumuxDoxygen.cmake
DumuxMacros.cmake
DumuxTestMacros.cmake
FindGLPK.cmake
FindGstat.cmake
FindNLOPT.cmake
FindPVPython.cmake
FindValgrind.cmake)
include(GNUInstallDirs)
install(FILES ${modules} DESTINATION ${DUNE_INSTALL_MODULEDIR})
......@@ -5,10 +5,10 @@ include(DumuxDoxygen)
include(DumuxTestMacros)
find_package(GLPK)
find_package(Gstat)
find_package(Gnuplot)
set(HAVE_GNUPLOT ${GNUPLOT_FOUND})
find_package(Gstat)
find_package(NLOPT)
find_package(Valgrind)
find_package(PTScotch)
find_package(PVPython)
find_package(Valgrind)
# .. cmake_module::
#
# Find the pvpython library
#
# You may set the following variables to modify the
# behaviour of this module:
#
# :ref:`PVPYTHON_ROOT`
# Path list to search for pvpython.
#
# Sets the following variables:
#
# :code:`PVPYTHON_FOUND`
# True if the pvpython library was found.
#
# :code:`PVPYTHON_EXECUTABLE`
# Path to pvpython executable
#
# .. cmake_variable:: PVPYTHON_ROOT
#
# You may set this variable to have :ref:`FindPVPython" look
# for the pvpython library in the given path before inspecting
# system paths.
#
# look for header files, only at positions given by the user
find_program(PVPYTHON_EXECUTABLE
NAMES pvpython
PATHS "${PVPYTHON_ROOT}/"
"${CMAKE_SOURCE_DIR}/../"
"/usr/bin/"
PATH_SUFFIXES "pvpython"
NO_DEFAULT_PATH
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
"PVPython"
DEFAULT_MSG
PVPYTHON_EXECUTABLE
)
# set macros for config.h
set(HAVE_PVPYTHON ${PVPYTHON_FOUND})
set(PVPYTHON_EXECUTABLE ${PVPYTHON_EXECUTABLE})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment