ResInsight/ThirdParty/Ert/python/CMakeLists.txt
Magne Sjaastad 04091ad77d #4266 Update libecl
Use commit 0e1e780fd6f18ce93119061e36a4fca9711bc020

Excluded multibuild folder, as this caused git issues
2019-05-09 08:40:32 +02:00

41 lines
1.2 KiB
CMake

set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
include(init_python)
init_python( 2.7 )
find_python_package(pandas 0.17 ${PYTHON_INSTALL_PREFIX})
if (NOT DEFINED PY_pandas)
message(WARNING "Pandas module not found Python wrappers not enabled. Install with: \"pip install pandas\"")
set( ENABLE_PYTHON OFF PARENT_SCOPE )
return()
endif()
find_python_package(numpy 1.7.1 ${PYTHON_INSTALL_PREFIX})
if (NOT DEFINED PY_numpy)
message(WARNING "numpy module not found - Python wrappers not enabled. Install with: \"pip install numpy\"")
set( ENABLE_PYTHON OFF PARENT_SCOPE )
return()
endif()
find_python_package(cwrap 1 ${PYTHON_INSTALL_PREFIX})
if (NOT DEFINED PY_cwrap)
message(WARNING "cwrap module not found Python wrappers not enabled. Install with: \"pip install cwrap\"")
set( ENABLE_PYTHON OFF PARENT_SCOPE )
return()
endif()
configure_file(test_env.py.in ${PROJECT_BINARY_DIR}/${PYTHON_INSTALL_PREFIX}/test_env.py )
add_subdirectory( ecl )
if (INSTALL_ERT_LEGACY)
add_subdirectory( ert )
endif()
if (BUILD_TESTS)
add_subdirectory( tests )
endif()
if(RST_DOC)
add_subdirectory( docs )
endif()