September 2018
Intermediate to advanced
606 pages
14h 32m
English
Now let us turn to the CMake side. In the CMakeLists.txt file, we need to apply the following:
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)project(recipe-04 LANGUAGES CXX)add_executable(arch-dependent arch-dependent.cpp)
if(CMAKE_SIZEOF_VOID_P EQUAL 8) target_compile_definitions(arch-dependent PUBLIC "IS_64_BIT_ARCH") message(STATUS "Target is 64 bits")else() target_compile_definitions(arch-dependent PUBLIC ...
Read now
Unlock full access