diff --git a/Modules/Python/CMakeLists.txt b/Modules/Python/CMakeLists.txt index b3841e503a..03ac79fce6 100644 --- a/Modules/Python/CMakeLists.txt +++ b/Modules/Python/CMakeLists.txt @@ -1,21 +1,27 @@ if( MITK_USE_Python ) if(NOT MITK_USE_SYSTEM_PYTHON) add_definitions( -DUSE_MITK_BUILTIN_PYTHON ) endif() set(OpenCV_DEP ) + set(SimpleITK_DEP ) if(MITK_USE_OpenCV) set(OpenCV_DEP OpenCV) endif() + if(not APPLE) + set(SimpleITK_DEP SimpleITK) + endif() + MITK_CREATE_MODULE( DEPENDS MitkCore EXPORT_DEFINE MITK_PYTHON_EXPORT - PACKAGE_DEPENDS Qt4|QtGui CTK PythonLibs SimpleITK VTK|vtkPython+vtkWrappingPythonCore ${OpenCV_DEP} + PACKAGE_DEPENDS Qt4|QtGui CTK|CTKScriptingPythonCore+CTKScriptingPythonWidgets PythonLibs VTK|vtkPython+vtkWrappingPythonCore ${SimpleITK_DEP} ${OpenCV_DEP} INCLUDE_DIRS ${NUMPY_INCLUDE_DIR} ) - configure_file(PythonPath.h.in - "${CMAKE_CURRENT_BINARY_DIR}/PythonPath.h" @ONLY) + configure_file(PythonPath.h.in "${CMAKE_CURRENT_BINARY_DIR}/PythonPath.h" @ONLY) - add_subdirectory(Testing) + if(NOT APPLE) + add_subdirectory(Testing) + endif() endif()