OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
cmake-3.10
/
Modules
/
FortranCInterface
/
Verify
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:00:25 AM
rwxr-xr-x
📄
CMakeLists.txt
865 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
VerifyC.c
65 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
VerifyCXX.cxx
54 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
VerifyFortran.f
74 bytes
01/18/2018 02:48:42 PM
rw-r--r--
📄
main.c
245 bytes
01/18/2018 02:48:42 PM
rw-r--r--
Editing: CMakeLists.txt
Close
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. 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()