Skip to content

Commit

Permalink
Add PythonInterface/PythonAlgorithms as target. Refs #6207
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Nov 22, 2012
1 parent d78fa32 commit a8b877e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/PythonAPI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ include_directories ( inc )
copy_python_files_to_dir( "${PY_FILES}" ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR} PYTHON_INSTALL_FILES )

# Python algorithms
add_compile_py_target( PythonAlgorithms ${CMAKE_CURRENT_SOURCE_DIR}/PythonAlgorithms )
add_compile_py_target( PythonAlgorithmsOld ${CMAKE_CURRENT_SOURCE_DIR}/PythonAlgorithms )

###########################################################################
# Create the target for this directory
###########################################################################

add_library ( PythonAPI ${SRC_FILES} ${INC_FILES} ${BOOST_SRC} ${PYTHON_INSTALL_FILES} )
add_dependencies( PythonAPI PythonAlgorithms )
add_dependencies( PythonAPI PythonAlgorithmsOld )
if ( UNIX )
set ( DLOPEN_SRC src/dlopen.c )
add_library ( dlopen ${DLOPEN_SRC} )
Expand Down
10 changes: 10 additions & 0 deletions Code/Mantid/Framework/PythonInterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ endif ()
###########################################################################
add_subdirectory ( mantid )

###########################################################################
# Python algorithms
###########################################################################
add_compile_py_target( PythonAlgorithms ${CMAKE_CURRENT_SOURCE_DIR}/PythonAlgorithms )
add_dependencies( PythonAPIModule PythonAlgorithms )

###########################################################################
# tests
###########################################################################
Expand Down Expand Up @@ -176,3 +182,7 @@ endif ()
install ( DIRECTORY mantid DESTINATION ${BIN_DIR}
FILES_MATCHING REGEX ".*.pyc?$"
PATTERN "src" EXCLUDE )

# Python algorithms
install ( DIRECTORY PythonAlgorithms/ DESTINATION ${PLUGINS_DIR}/PythonAlgs
PATTERN ".svn" EXCLUDE )

0 comments on commit a8b877e

Please sign in to comment.