mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
22 lines
596 B
CMake
22 lines
596 B
CMake
include(cmake/find_python_module.cmake)
|
|
|
|
if (ERT_BUILD_GUI)
|
|
FIND_PACKAGE(PythonInterp 2.7 REQUIRED)
|
|
find_python_module(PyQt4 REQUIRED)
|
|
else()
|
|
FIND_PACKAGE(PythonInterp 2.7 REQUIRED)
|
|
endif()
|
|
|
|
if (EXISTS "/etc/debian_version")
|
|
set( PYTHON_PACKAGE_PATH "dist-packages")
|
|
else()
|
|
set( PYTHON_PACKAGE_PATH "site-packages")
|
|
endif()
|
|
set(PYTHON_INSTALL_PREFIX "lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/${PYTHON_PACKAGE_PATH}" CACHE STRING "Subdirectory to install Python modules in")
|
|
|
|
|
|
if (BUILD_TESTS)
|
|
add_subdirectory( tests )
|
|
endif()
|
|
add_subdirectory( python )
|