add_subdirectory(calculator)

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-exit-time-destructors")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-weak-vtables")
endif()

add_subdirectory(calculator)

Disable slightly esoteric warnings for examples.
Disable slightly esoteric warnings for examples.

It might be useful to warn about exit-time destructors or weak vtables in
performance-critical code, but not in teaching examples: the most critical
property of example code is clarity.
