September 2018
Intermediate to advanced
606 pages
14h 32m
English
We will use CMake to fill the definitions in config.h with sensible values for our platform and to compile our sample source file into an executable:
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)project(recipe-05 CXX)
add_executable(processor-info "")target_sources(processor-info PRIVATE processor-info.cpp )target_include_directories(processor-info PRIVATE ${PROJECT_BINARY_DIR} )
foreach(key IN ITEMS NUMBER_OF_LOGICAL_CORES NUMBER_OF_PHYSICAL_CORES TOTAL_VIRTUAL_MEMORY AVAILABLE_VIRTUAL_MEMORY ...
Read now
Unlock full access