diff options
Diffstat (limited to 'share/cmake-3.2/Modules/FortranCInterface/Verify')
5 files changed, 0 insertions, 62 deletions
diff --git a/share/cmake-3.2/Modules/FortranCInterface/Verify/CMakeLists.txt b/share/cmake-3.2/Modules/FortranCInterface/Verify/CMakeLists.txt deleted file mode 100644 index cde3c53..0000000 --- a/share/cmake-3.2/Modules/FortranCInterface/Verify/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -#============================================================================= -# Copyright 2009 Kitware, Inc. -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= - -cmake_minimum_required(VERSION ${CMAKE_VERSION}) -project(VerifyFortranC C Fortran) - -option(VERIFY_CXX "Whether to verify C++ and Fortran" OFF) -if(VERIFY_CXX) - enable_language(CXX) - set(VerifyCXX VerifyCXX.cxx) - add_definitions(-DVERIFY_CXX) -endif() - -include(FortranCInterface) - -FortranCInterface_HEADER(VerifyFortran.h SYMBOLS VerifyFortran) -include_directories(${VerifyFortranC_BINARY_DIR}) - -add_library(VerifyFortran STATIC VerifyFortran.f) -add_executable(VerifyFortranC main.c VerifyC.c ${VerifyCXX}) -target_link_libraries(VerifyFortranC VerifyFortran) - -if(NOT VERIFY_CXX) - # The entry point (main) is defined in C; link with the C compiler. - set_property(TARGET VerifyFortranC PROPERTY LINKER_LANGUAGE C) -endif() diff --git a/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyC.c b/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyC.c deleted file mode 100644 index 7f847ef..0000000 --- a/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyC.c +++ /dev/null @@ -1,5 +0,0 @@ -#include <stdio.h> -void VerifyC(void) -{ - printf("VerifyC\n"); -} diff --git a/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyCXX.cxx b/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyCXX.cxx deleted file mode 100644 index 689fac5..0000000 --- a/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyCXX.cxx +++ /dev/null @@ -1,4 +0,0 @@ -extern "C" void VerifyCXX(void) -{ - delete new int; -} diff --git a/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyFortran.f b/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyFortran.f deleted file mode 100644 index a17e48d..0000000 --- a/share/cmake-3.2/Modules/FortranCInterface/Verify/VerifyFortran.f +++ /dev/null @@ -1,3 +0,0 @@ - subroutine VerifyFortran - print *, 'VerifyFortran' - end diff --git a/share/cmake-3.2/Modules/FortranCInterface/Verify/main.c b/share/cmake-3.2/Modules/FortranCInterface/Verify/main.c deleted file mode 100644 index 582ef1d..0000000 --- a/share/cmake-3.2/Modules/FortranCInterface/Verify/main.c +++ /dev/null @@ -1,16 +0,0 @@ -extern void VerifyC(void); -#ifdef VERIFY_CXX -extern void VerifyCXX(void); -#endif -#include "VerifyFortran.h" -extern void VerifyFortran(void); - -int main(void) -{ - VerifyC(); -#ifdef VERIFY_CXX - VerifyCXX(); -#endif - VerifyFortran(); - return 0; -} |