set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
set(CMAKE_MACOSX_RPATH 1)

if(CMAKE_BUILD_TYPE STREQUAL "")
    set(CMAKE_BUILD_TYPE Release)
endif()

option(WARNINGS_AS_ERRORS        "Compiler warnings as errors"       "OFF")
option(OPT_ASAN                  "Use adress sanitizer (debug)"      "ON")
option(BUILD_TESTING             "Build tests."                      "ON")
option(CODE_COVERAGE             "Code coverage."                    "OFF")