Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
git-svn-id: https://vmtk.svn.sourceforge.net/svnroot/vmtk@1 94be75cf-be22-0410-a3f1-cbcec1c01a80
  • Loading branch information
lucantiga committed Nov 21, 2006
0 parents commit 665c986
Show file tree
Hide file tree
Showing 507 changed files with 110,119 additions and 0 deletions.
47 changes: 47 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,47 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.0)

PROJECT(VMTK)

SUBDIRS(
PypeS
vtkVmtk
vmtkScripts
)

OPTION(VMTK_MINIMAL_INSTALL "Do not install individual scripts, only vmtk.py" OFF)

SET(LIBRARY_OUTPUT_PATH ${VMTK_BINARY_DIR}/bin CACHE PATH
"Single output directory for building all libraries.")
SET(EXECUTABLE_OUTPUT_PATH ${VMTK_BINARY_DIR}/bin CACHE PATH
"Single output directory for building all executables.")
MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH)

SET(VMTK_SRCS
vmtk.py
)

IF(NOT VMTK_INSTALL_BIN_DIR)
SET(VMTK_INSTALL_BIN_DIR ${VMTK_INSTALL_ROOT}/bin)
ENDIF(NOT VMTK_INSTALL_BIN_DIR)

FOREACH (SCRIPT_FILE ${VMTK_SRCS})
CONFIGURE_FILE(${VMTK_SOURCE_DIR}/${SCRIPT_FILE} ${VMTK_BINARY_DIR}/${SCRIPT_FILE} COPYONLY)
ENDFOREACH (SCRIPT_FILE)

IF (NOT WIN32)

SET (STRIPPED_SCRIPTS_SRCS )
FOREACH (SCRIPT_FILE ${VMTK_SRCS})
CONFIGURE_FILE(${VMTK_SOURCE_DIR}/${SCRIPT_FILE} ${VMTK_BINARY_DIR}/${SCRIPT_FILE} COPYONLY)
STRING(REGEX REPLACE ".py" "" STRIPPED_SCRIPT_FILE ${SCRIPT_FILE})
CONFIGURE_FILE(${VMTK_SOURCE_DIR}/${SCRIPT_FILE} ${VMTK_BINARY_DIR}/${STRIPPED_SCRIPT_FILE} COPYONLY)
SET (STRIPPED_SCRIPTS_SRCS ${STRIPPED_SCRIPTS_SRCS} ${STRIPPED_SCRIPT_FILE})
ENDFOREACH (SCRIPT_FILE)

INSTALL_PROGRAMS(${VMTK_INSTALL_BIN_DIR} FILES ${STRIPPED_SCRIPTS_SRCS})

ELSE (NOT WIN32)

INSTALL_PROGRAMS(${VMTK_INSTALL_BIN_DIR} FILES ${VMTK_SRCS})

ENDIF (NOT WIN32)
28 changes: 28 additions & 0 deletions LICENCE
@@ -0,0 +1,28 @@
Copyright (c) 2004-2006, Luca Antiga, David Steinman
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the Robarts Research Institute, of the Mario
Negri Institute, nor the names of its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 changes: 43 additions & 0 deletions PypeS/CMakeLists.txt
@@ -0,0 +1,43 @@
PROJECT (PYPES)

SET(PYPES_SRCS
pype.py
pypebatch.py
pypepad.py
pyperun.py
)

SET(PYPES_BASE_SRCS
pypescript.py
pypes.py
)

FOREACH (SCRIPT_FILE ${PYPES_BASE_SRCS})
CONFIGURE_FILE(${PYPES_SOURCE_DIR}/${SCRIPT_FILE} ${PYPES_BINARY_DIR}/${SCRIPT_FILE} COPYONLY)
ENDFOREACH (SCRIPT_FILE)

IF(NOT PYPES_INSTALL_BIN_DIR)
SET(PYPES_INSTALL_BIN_DIR ${PYPES_INSTALL_ROOT}/bin)
ENDIF(NOT PYPES_INSTALL_BIN_DIR)

IF(NOT PYPES_INSTALL_LIB_DIR)
SET(PYPES_INSTALL_LIB_DIR ${PYPES_INSTALL_ROOT}/lib/vmtk)
ENDIF(NOT PYPES_INSTALL_LIB_DIR)

FOREACH (SCRIPT_FILE ${PYPES_SRCS})
CONFIGURE_FILE(${PYPES_SOURCE_DIR}/${SCRIPT_FILE} ${PYPES_BINARY_DIR}/${SCRIPT_FILE} COPYONLY)
ENDFOREACH (SCRIPT_FILE)

INSTALL_FILES(${PYPES_INSTALL_LIB_DIR} .py ${PYPES_BASE_SRCS} ${PYPES_SRCS})

IF (NOT WIN32 AND NOT VMTK_MINIMAL_INSTALL)

SET (STRIPPED_PYPES_SRCS )
FOREACH (SCRIPT_FILE ${PYPES_SRCS})
STRING(REGEX REPLACE ".py" "" STRIPPED_SCRIPT_FILE ${SCRIPT_FILE})
CONFIGURE_FILE(${PYPES_SOURCE_DIR}/${SCRIPT_FILE} ${PYPES_BINARY_DIR}/${STRIPPED_SCRIPT_FILE} COPYONLY)
SET (STRIPPED_PYPES_SRCS ${STRIPPED_PYPES_SRCS} ${STRIPPED_SCRIPT_FILE})
ENDFOREACH (SCRIPT_FILE)
INSTALL_PROGRAMS(${PYPES_INSTALL_BIN_DIR} FILES ${STRIPPED_PYPES_SRCS})

ENDIF (NOT WIN32 AND NOT VMTK_MINIMAL_INSTALL)
28 changes: 28 additions & 0 deletions PypeS/LICENCE
@@ -0,0 +1,28 @@
Copyright (c) 2004-2005, Luca Antiga, David Steinman
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the Robarts Research Institute, of the Mario
Negri Institute, nor the names of its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 comments on commit 665c986

Please sign in to comment.