[med-svn] [pbbam] 06/08: Imported Upstream version 0~20150813+git4e9e417+dfsg

Afif Elghraoui afif-guest at moszumanska.debian.org
Fri Sep 18 08:23:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

afif-guest pushed a commit to branch master
in repository pbbam.

commit e2fa066c0c4692949fbfad765e95152e32fac320
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Fri Sep 18 01:14:47 2015 -0700

    Imported Upstream version 0~20150813+git4e9e417+dfsg
---
 cmake/FindCSharp.cmake             |  72 ----------------
 cmake/FindDotNetFrameworkSdk.cmake |  29 -------
 cmake/FindMono.cmake               | 167 -------------------------------------
 cmake/FindR.cmake                  |  48 -----------
 cmake/UseCSharp.cmake              | 111 ------------------------
 cmake/UseDotNetFrameworkSdk.cmake  |  16 ----
 cmake/UseMono.cmake                |  16 ----
 7 files changed, 459 deletions(-)

diff --git a/cmake/FindCSharp.cmake b/cmake/FindCSharp.cmake
deleted file mode 100644
index 08d09a7..0000000
--- a/cmake/FindCSharp.cmake
+++ /dev/null
@@ -1,72 +0,0 @@
-#
-# A CMake Module for finding and using C# (.NET and Mono).
-#
-# The following variables are set:
-#   CSHARP_FOUND - set to ON if C# is found
-#   CSHARP_USE_FILE - the path to the C# use file
-#   CSHARP_TYPE - the type of the C# compiler (eg. ".NET" or "Mono")
-#   CSHARP_VERSION - the version of the C# compiler (eg. "v4.0" or "2.10.2")
-#   CSHARP_COMPILER - the path to the C# compiler executable (eg. "C:/Windows/Microsoft.NET/Framework/v4.0.30319/csc.exe" or "/usr/bin/gmcs")
-#   CSHARP_INTERPRETER - the path to interpreter needed to run CSharp executables
-#   CSHARP_PLATFORM - the C# target platform
-#   CSHARP_SDK - the SDK commandline switch (empty for .NET, for Mono eg. "/sdk:2" or "/sdk:4")
-#
-# This file is based on the work of GDCM:
-#   http://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/FindCSharp.cmake
-# Copyright (c) 2006-2010 Mathieu Malaterre <mathieu.malaterre at gmail.com>
-#
-
-# TODO: ADD ABILITY TO SELECT WHICH C# COMPILER eg. .NET or Mono (if both exist). For the moment, .NET is selected above Mono.
-
-# Make sure find package macros are included
-include( FindPackageHandleStandardArgs )
-
-unset( CSHARP_COMPILER CACHE )
-unset( CSHARP_INTERPRETER CACHE )
-unset( CSHARP_TYPE CACHE )
-unset( CSHARP_VERSION CACHE )
-unset( CSHARP_FOUND CACHE )
-
-# By default use anycpu platform, allow the user to override
-set( CSHARP_PLATFORM "anycpu" CACHE STRING "C# target platform: x86, x64, anycpu, or itanium" )
-if( NOT ${CSHARP_PLATFORM} MATCHES "x86|x64|anycpu|itanium" )
-  message( FATAL_ERROR "The C# target platform '${CSHARP_PLATFORM}' is not valid. Please enter one of the following: x86, x64, anycpu, or itanium" )
-endif( )
-
-if( WIN32 )
-  find_package( DotNetFrameworkSdk )
-  if( NOT CSHARP_DOTNET_FOUND )
-    find_package( Mono )
-  endif( )
-else( UNIX )
-  find_package( Mono )
-endif( )
-
-if( CSHARP_DOTNET_FOUND )
-  set( CSHARP_TYPE ".NET" CACHE STRING "Using the .NET compiler" )
-  set( CSHARP_VERSION ${CSHARP_DOTNET_VERSION} CACHE STRING "C# .NET compiler version" FORCE )
-  set( CSHARP_COMPILER ${CSHARP_DOTNET_COMPILER_${CSHARP_DOTNET_VERSION}} CACHE STRING "Full path to .NET compiler" FORCE )
-  set( CSHARP_INTERPRETER "" CACHE INTERNAL "Interpretor not required for .NET" FORCE )
-elseif( CSHARP_MONO_FOUND )
-  set( CSHARP_TYPE "Mono" CACHE STRING "Using the Mono compiler" )
-  set( CSHARP_VERSION ${CSHARP_MONO_VERSION} CACHE STRING "C# Mono compiler version" FORCE )
-  set( CSHARP_COMPILER ${CSHARP_MONO_COMPILER_${CSHARP_MONO_VERSION}} CACHE STRING "Full path to Mono compiler" FORCE )
-  set( CSHARP_INTERPRETER ${CSHARP_MONO_INTERPRETER_${CSHARP_MONO_VERSION}} CACHE STRING "Full path to Mono interpretor" FORCE )
-  set( CSHARP_SDK "/sdk:4.5" CACHE STRING "C# Mono SDK commandline switch (e.g. /sdk:2, /sdk:4, /sdk:5)" )
-endif( )
-
-# Handle WIN32 specific issues
-if ( WIN32 )
-  if ( CSHARP_COMPILER MATCHES "bat" )
-    set( CSHARP_COMPILER "call ${CSHARP_COMPILER}" )
-  endif ( )
-endif( )
-
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(CSharp DEFAULT_MSG CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER)
-
-mark_as_advanced( CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER CSHARP_INTERPRETER CSHARP_PLATFORM CSHARP_SDK )
-
-# Set the USE_FILE path
-# http://public.kitware.com/Bug/view.php?id=7757
-get_filename_component( current_list_path ${CMAKE_CURRENT_LIST_FILE} PATH )
-set( CSHARP_USE_FILE ${current_list_path}/UseCSharp.cmake )
diff --git a/cmake/FindDotNetFrameworkSdk.cmake b/cmake/FindDotNetFrameworkSdk.cmake
deleted file mode 100644
index 8e12c70..0000000
--- a/cmake/FindDotNetFrameworkSdk.cmake
+++ /dev/null
@@ -1,29 +0,0 @@
-# Set paths and vars for .NET compilers 
-# This is hand-rolled because I had problems with the one from SimpleITK
-
-#
-# The following variables are set:
-#   CSHARP_DOTNET_FOUND
-#   CSHARP_DOTNET_COMPILER_${version} eg. "CSHARP_DOTNET_COMPILER_v4.0.30319"
-#   CSHARP_DOTNET_VERSION eg. "v4.0.30319"
-#   CSHARP_DOTNET_VERSIONS eg. "v2.0.50727, v3.5, v4.0.30319"
-#   DotNetFrameworkSdk_USE_FILE
-#
-#   CSHARP_PROJECT_BUILDER (xbuild/msbuild)
-
-set(framework_dir "C:/Windows/Microsoft.NET/Framework")
-
-set(CSHARP_DOTNET_VERSION "v4.0.30319")
-set(CSHARP_DOTNET_VERSIONS "")
-set(CSHARP_DOTNET_COMPILER_${CSHARP_DOTNET_VERSION} "${framework_dir}/${CSHARP_DOTNET_VERSION}/csc.exe")
-set(CSHARP_PROJECT_BUILDER "${framework_dir}/${CSHARP_DOTNET_VERSION}/MSBuild.exe")
-
-if(EXISTS ${CSHARP_DOTNET_COMPILER_${CSHARP_DOTNET_VERSION}})
-	set(CSHARP_DOTNET_FOUND 1)
-else()
-	set(CSHARP_DOTNET_FOUND 0)
-endif()
-
-# Set USE_FILE
-get_filename_component( current_list_path ${CMAKE_CURRENT_LIST_FILE} PATH )
-set( DotNetFrameworkSdk_USE_FILE ${current_list_path}/UseDotNetFrameworkSdk.cmake )
\ No newline at end of file
diff --git a/cmake/FindMono.cmake b/cmake/FindMono.cmake
deleted file mode 100644
index 0fab116..0000000
--- a/cmake/FindMono.cmake
+++ /dev/null
@@ -1,167 +0,0 @@
-#
-# A CMake Module for finding Mono.
-#
-# The following variables are set:
-#   CSHARP_MONO_FOUND
-#   CSHARP_MONO_COMPILER_${version} eg. "CSHARP_MONO_COMPILER_2.10.2"
-#   CSHARP_MONO_INTERPRETOR_${version} eg. "CSHARP_MONO_INTERPRETOR_2.10.2"
-#   CSHARP_MONO_VERSION eg. "2.10.2"
-#   CSHARP_MONO_VERSIONS eg. "2.10.2, 2.6.7"
-#
-# Additional references can be found here:
-#   http://www.mono-project.com/Main_Page
-#   http://www.mono-project.com/CSharp_Compiler
-#   http://mono-project.com/FAQ:_Technical (How can I tell where the Mono runtime is installed)
-#
-# This file is based on the work of GDCM:
-#   http://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/FindMono.cmake
-# Copyright (c) 2006-2010 Mathieu Malaterre <mathieu.malaterre at gmail.com>
-#
-
-set( csharp_mono_valid 1 )
-if( DEFINED CSHARP_MONO_FOUND )
-  # The Mono compiler has already been found
-  # It may have been reset by the user, verify it is correct
-  if( NOT DEFINED CSHARP_MONO_COMPILER_${CSHARP_MONO_VERSION} )
-    set( csharp_mono_version_user ${CSHARP_MONO_VERSION} )
-    set( csharp_mono_valid 0 )
-    set( CSHARP_MONO_FOUND 0 )
-    set( CSHARP_MONO_VERSION "CSHARP_MONO_VERSION-NOTVALID" CACHE STRING "C# Mono compiler version, choices: ${CSHARP_MONO_VERSIONS}" FORCE )
-    message( FATAL_ERROR "The C# Mono version '${csharp_mono_version_user}' is not valid. Please enter one of the following: ${CSHARP_MONO_VERSIONS}" )
-  endif( NOT DEFINED CSHARP_MONO_COMPILER_${CSHARP_MONO_VERSION} )
-endif( DEFINED CSHARP_MONO_FOUND )
-
-unset( CSHARP_MONO_VERSIONS CACHE ) # Clear versions
-if( WIN32 )
-  # Search for Mono on Win32 systems
-  # See http://mono-project.com/OldReleases and http://www.go-mono.com/mono-downloads/download.html
-  set( csharp_mono_bin_dirs )
-  set( csharp_mono_search_hints
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.11.2;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.9;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.8;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.7;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.6;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.5;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.4;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.3;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.2;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.1;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.8;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.7;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.4;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.3;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.1;SdkInstallRoot]/bin"
-    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6;SdkInstallRoot]/bin"
-  )
-  foreach( csharp_mono_search_hint ${csharp_mono_search_hints} )
-    get_filename_component( csharp_mono_bin_dir "${csharp_mono_search_hint}" ABSOLUTE )
-    if ( EXISTS "${csharp_mono_bin_dir}" )
-      set( csharp_mono_bin_dirs ${csharp_mono_bin_dirs} ${csharp_mono_bin_dir} )
-    endif ( EXISTS "${csharp_mono_bin_dir}" )
-  endforeach( csharp_mono_search_hint )
-  # TODO: Use HKLM_LOCAL_MACHINE\Software\Novell\Mono\DefaultCLR to specify default version
-  # get_filename_component( test "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono;DefaultCLR]" NAME )
-
-  foreach ( csharp_mono_bin_dir ${csharp_mono_bin_dirs} )
-    string( REPLACE "\\" "/" csharp_mono_bin_dir ${csharp_mono_bin_dir} )
-    if (EXISTS "${csharp_mono_bin_dir}/dmcs.bat")
-      set( csharp_mono_executable "${csharp_mono_bin_dir}/dmcs.bat")
-    elseif (EXISTS "${csharp_mono_bin_dir}/gmcs.bat")
-      set( csharp_mono_executable "${csharp_mono_bin_dir}/gmcs.bat")
-    elseif (EXISTS "${csharp_mono_bin_dir}/mcs.bat")
-      set( csharp_mono_executable "${csharp_mono_bin_dir}/mcs.bat")
-    endif (EXISTS "${csharp_mono_bin_dir}/dmcs.bat")
-
-    if( csharp_mono_valid )
-      # Extract version number (eg. 2.10.2)
-      string(REGEX MATCH "([0-9]*)([.])([0-9]*)([.]*)([0-9]*)" csharp_mono_version_temp ${csharp_mono_bin_dir})
-      set( CSHARP_MONO_VERSION ${csharp_mono_version_temp} CACHE STRING "C# Mono compiler version" )
-      mark_as_advanced( CSHARP_MONO_VERSION )
-
-      # Add variable holding executable
-      set( CSHARP_MONO_COMPILER_${csharp_mono_version_temp} ${csharp_mono_executable} CACHE STRING "C# Mono compiler ${csharp_mono_version_temp}" FORCE )
-      mark_as_advanced( CSHARP_MONO_COMPILER_${csharp_mono_version_temp} )
-
-      # Set interpreter
-      if (EXISTS "${csharp_mono_bin_dir}/mono.exe")
-        set( CSHARP_MONO_INTERPRETER_${csharp_mono_version_temp} "${csharp_mono_bin_dir}/mono.exe" CACHE STRING "C# Mono interpreter ${csharp_mono_version_temp}" FORCE )
-        mark_as_advanced( CSHARP_MONO_INTERPRETER_${csharp_mono_version_temp} )
-      endif (EXISTS "${csharp_mono_bin_dir}/mono.exe")
-    endif( csharp_mono_valid )
-
-    # Create a list of supported compiler versions
-    if( NOT DEFINED CSHARP_MONO_VERSIONS )
-      set( CSHARP_MONO_VERSIONS "${csharp_mono_version_temp}" CACHE STRING "Available C# Mono compiler versions" FORCE )
-    else( NOT DEFINED CSHARP_MONO_VERSIONS )
-      set( CSHARP_MONO_VERSIONS "${CSHARP_MONO_VERSIONS}, ${csharp_mono_version_temp}"  CACHE STRING "Available C# Mono versions" FORCE )
-    endif( NOT DEFINED CSHARP_MONO_VERSIONS )
-    mark_as_advanced( CSHARP_MONO_VERSIONS )
-
-    # We found at least one Mono compiler version
-    set( CSHARP_MONO_FOUND 1 CACHE INTERNAL "Boolean indicating if C# Mono was found" )
-  endforeach( csharp_mono_bin_dir )
-
-else( UNIX )
-  # Search for Mono on non-Win32 systems
-  set( chsarp_mono_names "mcs" "mcs.exe" "dmcs" "dmcs.exe" "smcs" "smcs.exe" "gmcs" "gmcs.exe" )
-  set(
-    csharp_mono_paths
-    "/usr/bin/"
-    "/usr/local/bin/"
-    "/usr/lib/mono/2.0"
-    "/opt/novell/mono/bin"
-  )
-  find_program(
-    csharp_mono_compiler # variable is added to the cache, we removed it below
-    NAMES ${chsarp_mono_names}
-    PATHS ${csharp_mono_paths}
-  )
-
-  if( EXISTS ${csharp_mono_compiler} )
-    # Determine version
-    find_program(
-      csharp_mono_interpreter # variable is added to the cache, we removed it below
-      NAMES mono
-      PATHS ${csharp_mono_paths}
-    )
-    if ( EXISTS ${csharp_mono_interpreter} )
-      execute_process(
-        COMMAND ${csharp_mono_interpreter} -V
-        OUTPUT_VARIABLE csharp_mono_version_string
-      )
-      string( REGEX MATCH "([0-9]*)([.])([0-9]*)([.]*)([0-9]*)" csharp_mono_version_temp ${csharp_mono_version_string} )
-      set( CSHARP_MONO_INTERPRETER_${CSHARP_MONO_VERSION} ${csharp_mono_interpreter} CACHE STRING "C# Mono interpreter ${csharp_mono_version_temp}" FORCE )
-      mark_as_advanced( CSHARP_MONO_INTERPRETER_${CSHARP_MONO_VERSION} )
-    endif ( EXISTS ${csharp_mono_interpreter} )
-    unset( csharp_mono_interpreter CACHE )
-
-    # We found Mono compiler
-    set( CSHARP_MONO_VERSION ${csharp_mono_version_temp} CACHE STRING "C# Mono compiler version" )
-    mark_as_advanced( CSHARP_MONO_VERSION )
-    set( CSHARP_MONO_COMPILER_${CSHARP_MONO_VERSION} ${csharp_mono_compiler} CACHE STRING "C# Mono compiler ${CSHARP_MONO_VERSION}" FORCE )
-    mark_as_advanced( CSHARP_MONO_COMPILER_${CSHARP_MONO_VERSION} )
-    set( CSHARP_MONO_VERSIONS ${CSHARP_MONO_VERSION} CACHE STRING "Available C# Mono compiler versions" FORCE )
-    mark_as_advanced( CSHARP_MONO_VERSIONS )
-    set( CSHARP_MONO_FOUND 1 CACHE INTERNAL "Boolean indicating if C# Mono was found" )
-
-    # Assume xbuild is just xbuild.
-    set(CSHARP_PROJECT_BUILDER "xbuild")
-
-
-  endif( EXISTS ${csharp_mono_compiler} )
-
-  # Remove temp variable from cache
-  unset( csharp_mono_compiler CACHE )
-
-endif( WIN32 )
-
-if( CSHARP_MONO_FOUND )
-  # Report the found versions
-  message( STATUS "Found the following C# Mono versions: ${CSHARP_MONO_VERSIONS}" )
-endif( CSHARP_MONO_FOUND )
-
-# Set USE_FILE
-get_filename_component( current_list_path ${CMAKE_CURRENT_LIST_FILE} PATH )
-set( Mono_USE_FILE ${current_list_path}/UseMono.cmake )
diff --git a/cmake/FindR.cmake b/cmake/FindR.cmake
deleted file mode 100644
index 6ae4354..0000000
--- a/cmake/FindR.cmake
+++ /dev/null
@@ -1,48 +0,0 @@
-
-#
-# - This module locates an installed R distribution.
-#
-# Defines the following:
-#
-# R_INCLUDE_DIR      - Path to R include directory
-# R_LIBRARIES        - Path to R library
-# R_LIBRARY_BASE     -
-# R_COMMAND          - Path to R command
-# RSCRIPT_EXECUTABLE - Path to Rscript command
-#
-
-
-# Make sure find package macros are included
-include( FindPackageHandleStandardArgs )
-
-set(TEMP_CMAKE_FIND_APPBUNDLE ${CMAKE_FIND_APPBUNDLE})
-set(CMAKE_FIND_APPBUNDLE "NEVER")
-find_program(R_COMMAND R DOC "R executable.")
-if(R_COMMAND)
-  execute_process(WORKING_DIRECTORY . COMMAND ${R_COMMAND} RHOME OUTPUT_VARIABLE R_BASE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
-  set(R_HOME ${R_BASE_DIR} CACHE PATH "R home directory obtained from R RHOME")
-  mark_as_advanced(R_HOME)
-endif(R_COMMAND)
-
-find_program(RSCRIPT_EXECUTABLE Rscript DOC "Rscript executable.")
-
-set(CMAKE_FIND_APPBUNDLE ${TEMP_CMAKE_FIND_APPBUNDLE})
-
-# R.h gets installed in all sorts of places -
-# ubuntu: /usr/share/R/include, RHEL/Fedora: /usr/include/R/R.h
-find_path(R_INCLUDE_DIR R.h PATHS ${R_INCLUDE_DIR_HINT} /usr/local/lib /usr/local/lib64 /usr/share /usr/include ${R_BASE_DIR} PATH_SUFFIXES include R R/include DOC "Path to file R.h")
-find_library(R_LIBRARY_BASE R PATHS ${R_BASE_DIR} PATH_SUFFIXES /lib DOC "R library (example libR.a, libR.dylib, etc.).")
-
-set(R_LIBRARIES ${R_LIBRARY_BASE})
-mark_as_advanced(RSCRIPT_EXECUTABLE R_LIBRARIES R_INCLUDE_DIR R_COMMAND R_LIBRARY_BASE)
-
-
-set( _REQUIRED_R_VARIABLES R_INCLUDE_DIR R_COMMAND )
-
-if( APPLE )
-  # On linux platform some times the libR.so is not available, however
-  # on apple a link error results if the library is linked.
-  list(  APPEND _REQUIRED_R_VARIABLES R_LIBRARIES R_LIBRARY_BASE )
-endif()
-
-find_package_handle_standard_args(R DEFAULT_MSG ${_REQUIRED_R_VARIABLES} )
diff --git a/cmake/UseCSharp.cmake b/cmake/UseCSharp.cmake
deleted file mode 100644
index dac4537..0000000
--- a/cmake/UseCSharp.cmake
+++ /dev/null
@@ -1,111 +0,0 @@
-# CMake Module for finding and using C# (.NET and Mono).
-#
-# The following global variables are assumed to exist:
-#   CSHARP_SOURCE_DIRECTORY - path to C# sources
-#   CSHARP_BINARY_DIRECTORY - path to place resultant C# binary files
-#
-# The following variables are set:
-#   CSHARP_TYPE - the type of the C# compiler (eg. ".NET" or "Mono")
-#   CSHARP_COMPILER - the path to the C# compiler executable (eg. "C:/Windows/Microsoft.NET/Framework/v4.0.30319/csc.exe")
-#   CSHARP_VERSION - the version number of the C# compiler (eg. "v4.0.30319")
-#
-# The following macros are defined:
-#   CSHARP_ADD_EXECUTABLE( name references [files] [output_dir] ) - Define C# executable with the given name
-#   CSHARP_ADD_LIBRARY( name references [files] [output_dir] ) - Define C# library with the given name
-#
-# Examples:
-#   CSHARP_ADD_EXECUTABLE( MyExecutable "" "Program.cs" )
-#   CSHARP_ADD_EXECUTABLE( MyExecutable "ref1.dll ref2.dll" "Program.cs File1.cs" )
-#   CSHARP_ADD_EXECUTABLE( MyExecutable "ref1.dll;ref2.dll" "Program.cs;File1.cs" )
-#
-# This file is based on the work of GDCM:
-#   http://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/UseCSharp.cmake
-# Copyright (c) 2006-2010 Mathieu Malaterre <mathieu.malaterre at gmail.com>
-#
-
-# TODO: ADD SUPPORT FOR LINK LIBRARIES
-
-# Check something was found
-if( NOT CSHARP_COMPILER )
-  message( WARNING "A C# compiler executable was not found on your system" )
-endif( NOT CSHARP_COMPILER )
-
-# Include type-based USE_FILE
-if( CSHARP_TYPE MATCHES ".NET" )
-  include( ${DotNetFrameworkSdk_USE_FILE} )
-elseif ( CSHARP_TYPE MATCHES "Mono" )
-  include( ${Mono_USE_FILE} )
-endif ( CSHARP_TYPE MATCHES ".NET" )
-
-macro( CSHARP_ADD_LIBRARY name )
-  CSHARP_ADD_PROJECT( "library" ${name} ${ARGN} )
-endmacro( CSHARP_ADD_LIBRARY )
-
-macro( CSHARP_ADD_EXECUTABLE name )
-  CSHARP_ADD_PROJECT( "exe" ${name} ${ARGN} )
-endmacro( CSHARP_ADD_EXECUTABLE )
-
-# Private macro
-macro( CSHARP_ADD_PROJECT type name )
-  set( refs "/reference:System.dll" )
-  set( sources )
-  set( sources_dep )
-
-  if( ${type} MATCHES "library" )
-    set( output "dll" )
-  elseif( ${type} MATCHES "exe" )
-    set( output "exe" )
-  endif( ${type} MATCHES "library" )
-
-  # Step through each argument
-  foreach( it ${ARGN} )
-    if( ${it} MATCHES "(.*)(dll)" )
-       # Argument is a dll, add reference
-       list( APPEND refs /reference:${it} )
-    else( )
-      # Argument is a source file
-      if( EXISTS ${it} )
-        list( APPEND sources ${it} )
-        list( APPEND sources_dep ${it} )
-      elseif( EXISTS ${CSHARP_SOURCE_DIRECTORY}/${it} )
-        list( APPEND sources ${CSHARP_SOURCE_DIRECTORY}/${it} )
-        list( APPEND sources_dep ${CSHARP_SOURCE_DIRECTORY}/${it} )
-      elseif( ${it} MATCHES "[*]" )
-        # For dependencies, we need to expand wildcards
-        FILE( GLOB it_glob ${it} )
-        list( APPEND sources ${it} )
-        list( APPEND sources_dep ${it_glob} )
-      endif( )
-    endif ( )
-  endforeach( )
-
-  # Check we have at least one source
-  list( LENGTH sources_dep sources_length )
-  if ( ${sources_length} LESS 1 )
-    MESSAGE( SEND_ERROR "No C# sources were specified for ${type} ${name}" )
-  endif ()
-  list( SORT sources_dep )
-
-  # Perform platform specific actions
-  if (WIN32)
-    string( REPLACE "/" "\\" sources ${sources} )
-  else (UNIX)
-    string( REPLACE "\\" "/" sources ${sources} )
-  endif (WIN32)
-
-  # Add custom target and command
-  MESSAGE( STATUS "Adding C# ${type} ${name}: '${CSHARP_COMPILER} /t:${type} /out:${name}.${output} /platform:${CSHARP_PLATFORM} ${CSHARP_SDK} ${refs} ${sources}'" )
-  add_custom_command(
-    COMMENT "Compiling C# ${type} ${name}: '${CSHARP_COMPILER} /t:${type} /out:${name}.${output} /platform:${CSHARP_PLATFORM} ${CSHARP_SDK} ${refs} ${sources}'"
-    OUTPUT ${CSHARP_BINARY_DIRECTORY}/${name}.${output}
-    COMMAND ${CSHARP_COMPILER}
-    ARGS /t:${type} /out:${name}.${output} /platform:${CSHARP_PLATFORM} ${CSHARP_SDK} ${refs} ${sources}
-    WORKING_DIRECTORY ${CSHARP_BINARY_DIRECTORY}
-    DEPENDS ${sources_dep}
-  )
-  add_custom_target(
-    ${name} ALL
-    DEPENDS ${CSHARP_BINARY_DIRECTORY}/${name}.${output}
-    SOURCES ${sources_dep}
-  )
-endmacro( CSHARP_ADD_PROJECT )
diff --git a/cmake/UseDotNetFrameworkSdk.cmake b/cmake/UseDotNetFrameworkSdk.cmake
deleted file mode 100644
index 6be4027..0000000
--- a/cmake/UseDotNetFrameworkSdk.cmake
+++ /dev/null
@@ -1,16 +0,0 @@
-#
-# A CMake Module for using Mono.
-#
-# The following variables are set:
-#   (none)
-#
-# Additional references can be found here:
-#   http://www.mono-project.com/Main_Page
-#   http://www.mono-project.com/CSharp_Compiler
-#
-# This file is based on the work of GDCM:
-#   http://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/FindMono.cmake
-# Copyright (c) 2006-2010 Mathieu Malaterre <mathieu.malaterre at gmail.com>
-#
-
-message( STATUS "Using .NET compiler version ${CSHARP_DOTNET_VERSION}" )
\ No newline at end of file
diff --git a/cmake/UseMono.cmake b/cmake/UseMono.cmake
deleted file mode 100644
index 16a80ae..0000000
--- a/cmake/UseMono.cmake
+++ /dev/null
@@ -1,16 +0,0 @@
-#
-# A CMake Module for using Mono.
-#
-# The following variables are set:
-#   (none)
-#
-# Additional references can be found here:
-#   http://www.mono-project.com/Main_Page
-#   http://www.mono-project.com/CSharp_Compiler
-#
-# This file is based on the work of GDCM:
-#   http://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/FindMono.cmake
-# Copyright (c) 2006-2010 Mathieu Malaterre <mathieu.malaterre at gmail.com>
-#
-
-message( STATUS "Using Mono compiler version ${CSHARP_MONO_VERSION}" )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pbbam.git



More information about the debian-med-commit mailing list