Files
ResInsight/ThirdParty/Ert/devel/python/CMakeLists.txt
2015-07-01 15:36:22 +02:00

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 )