September 2018
Intermediate to advanced
606 pages
14h 32m
English
We shall start out with the C++ example before moving on to the Fortran example:
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)project(recipe-03 LANGUAGES CXX)
add_executable(hello-world hello-world.cpp)
target_compile_definitions(hello-world PUBLIC "COMPILER_NAME=\"${CMAKE_CXX_COMPILER_ID}\"")if(CMAKE_CXX_COMPILER_ID MATCHES Intel) target_compile_definitions(hello-world PUBLIC "IS_INTEL_CXX_COMPILER")endif()if(CMAKE_CXX_COMPILER_ID ...Read now
Unlock full access