Files
opm-common/opm/parser/eclipse/python/CMakeLists.txt
2016-07-01 15:36:38 +02:00

21 lines
620 B
CMake

find_package (PythonInterp REQUIRED)
find_package (ERTPython)
if (ERT_PYTHON_PATH)
add_subdirectory( c_inter )
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")
include(cmake/python.cmake)
add_subdirectory( python )
add_subdirectory( tests )
else()
message("Could not find ERTPython - Python bindings skipped")
endif()