Skip to content

Commit

Permalink
for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinpeng authored and Jinpeng committed Apr 16, 2013
0 parents commit f290b07
Show file tree
Hide file tree
Showing 211 changed files with 37,242 additions and 0 deletions.
65 changes: 65 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
cmake_minimum_required( VERSION 2.6 )
find_package( brainvisa-cmake REQUIRED )
BRAINVISA_PROJECT()

find_package( SIP )

BRAINVISA_COPY_PYTHON_DIRECTORY( "${CMAKE_CURRENT_SOURCE_DIR}/python"
${PROJECT_NAME} )

BRAINVISA_COPY_DIRECTORY( "${CMAKE_CURRENT_SOURCE_DIR}/bin"
bin
${PROJECT_NAME} )

BRAINVISA_DEPENDENCY( RUN DEPENDS python RUN ">= 2.5;<< 3.0" )
BRAINVISA_DEPENDENCY( RUN DEPENDS libqtcore4 RUN ">= 4.6" )
BRAINVISA_DEPENDENCY( RUN DEPENDS libqtgui4 RUN ">= 4.6" )
BRAINVISA_DEPENDENCY( RUN RECOMMENDS libqt4-designer RUN ">= 4.6" )

find_package( LibDRMAA QUIET )
if( NOT LIBDRMAA_FOUND )
set( LIBDRMAA_LIBRARIES drmaa )
else()
add_subdirectory( src/drmaaJobs )
if( SIP_FOUND )
add_subdirectory( src/sip )
else()
message( "WARNING: python wrapping of drmaajobs not built because sip has not been found" )
endif()
endif()

# PySide-compatible .ui -> .py generation
find_program( PYUIC "pyside-uic" )

if( PYUIC )
message( "run BRAINVISA_PYUIC" )
BRAINVISA_PYUIC( JobInfo.ui ui_job_info.py python/soma/workflow/gui )
BRAINVISA_PYUIC( graphWidget.ui ui_graph_widget.py python/soma/workflow/gui )
BRAINVISA_PYUIC( PlotWidget.ui ui_plot_widget.py python/soma/workflow/gui )
BRAINVISA_PYUIC( TransferInfo.ui ui_transfer_info.py python/soma/workflow/gui )
BRAINVISA_PYUIC( GroupInfo.ui ui_group_info.py python/soma/workflow/gui )
BRAINVISA_PYUIC( connection_dlg.ui ui_connection_dlg.py python/soma/workflow/gui )
BRAINVISA_PYUIC( workflowExampleDlg.ui ui_workflow_example_dlg.py python/soma/workflow/gui )
BRAINVISA_PYUIC( submissionDlg.ui ui_submission_dlg.py python/soma/workflow/gui )
BRAINVISA_PYUIC( resource_wf_select.ui ui_resource_wf_select.py python/soma/workflow/gui )
BRAINVISA_PYUIC( main_window.ui ui_main_window.py python/soma/workflow/gui )
BRAINVISA_PYUIC( wf_status_name_date.ui ui_wf_status_name_date.py python/soma/workflow/gui )
BRAINVISA_PYUIC( sw_mini.ui ui_sw_mini_widget.py python/soma/workflow/gui )
BRAINVISA_PYUIC( search_widget.ui ui_search_widget.py python/soma/workflow/gui )
BRAINVISA_PYUIC( local_scheduler_widget.ui ui_local_scheduler_cfg_ctrl.py python/soma/workflow/gui )
BRAINVISA_PYUIC( engine_controller_widget.ui ui_workflow_engine_cfg_ctrl.py python/soma/workflow/gui )
endif()

configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/config/config.py.in" "${CMAKE_BINARY_DIR}/python/soma/workflow/version.py" @ONLY )
BRAINVISA_INSTALL( FILES "${CMAKE_BINARY_DIR}/python/soma/workflow/version.py"
DESTINATION "python/soma/workflow"
COMPONENT ${PROJECT_NAME} )



find_package( Sphinx )

BRAINVISA_GENERATE_SPHINX_DOC( "doc/source"
"share/doc/soma-workflow-${BRAINVISA_PACKAGE_VERSION_MAJOR}.${BRAINVISA_PACKAGE_VERSION_MINOR}/sphinx" )

BRAINVISA_CREATE_CMAKE_CONFIG_FILES()
Loading

0 comments on commit f290b07

Please sign in to comment.