2017-05-08 06:37:39 -05:00
|
|
|
install( DIRECTORY cmake DESTINATION share )
|
2016-10-13 06:31:31 -05:00
|
|
|
|
2017-05-08 06:37:39 -05:00
|
|
|
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
|
|
|
|
include(init_python)
|
|
|
|
init_python( 2.7 )
|
2016-10-13 06:31:31 -05:00
|
|
|
|
2018-05-04 07:06:42 -05:00
|
|
|
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()
|
2016-10-13 06:31:31 -05:00
|
|
|
|
2017-05-08 06:37:39 -05:00
|
|
|
find_python_package(numpy 1.7.1 ${PYTHON_INSTALL_PREFIX})
|
2016-10-13 06:31:31 -05:00
|
|
|
if (NOT DEFINED PY_numpy)
|
2018-04-09 01:48:36 -05:00
|
|
|
message(WARNING "numpy module not found - Python wrappers not enabled. Install with: \"pip install numpy\"")
|
|
|
|
set( ENABLE_PYTHON OFF PARENT_SCOPE )
|
2016-10-13 06:31:31 -05:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2018-04-09 01:48:36 -05:00
|
|
|
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()
|
2016-10-13 06:31:31 -05:00
|
|
|
|
|
|
|
if (BUILD_TESTS)
|
|
|
|
add_subdirectory( tests )
|
|
|
|
endif()
|
2017-05-08 06:37:39 -05:00
|
|
|
|