April 2020
Intermediate to advanced
412 pages
9h 58m
English
We are going to modify build rules of the application we used in the preceding recipes to have two build targets—debug and release:
SET(CMAKE_CXX_FLAGS "-g --std=c++11")
SET(CMAKE_CXX_FLAGS_RELEASE "--std=c++11")SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE} -g -DDEBUG")
#include <iostream>#include <chrono>#include <thread>#include <functional> ...