Skip to content
Snippets Groups Projects
Commit 8acc6b85 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'cherry-pick-7ae602bb' into 'next'

Merge branch 'cmake/findPVPython' into 'master'

See merge request !396
parents bd140224 115831b7
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!396Merge branch 'cmake/findPVPython' into 'master'
......@@ -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})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment