September 2018
Intermediate to advanced
606 pages
14h 32m
English
This project mixes C++, which is the language of the main program, Fortran, because this is the language the libraries are written in, and C, which is needed to wrap the Fortran subroutines. In the root CMakeLists.txt file, we need to do the following:
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)project(recipe-02 LANGUAGES CXX C Fortran)set(CMAKE_CXX_STANDARD 11)set(CMAKE_CXX_EXTENSIONS OFF)set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(GNUInstallDirs)set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ...
Read now
Unlock full access