You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
option(CPM_USE_LOCAL_PACKAGES"Try `find_package` before downloading dependencies"ON)
# Options
option(BUILD_SNIPPETS"Build snippets"ON)
option(BUILD_EXAMPLES"Build examples"ON)
# The tray library is not being frequently maintained
# This example is not good for all operating systems
option(BUILD_TRAY"Build tray snippets"OFF)
option(BUILD_WITH_PEDANTIC_WARNINGS"Use pedantic warnings. This is useful for developers because many of these warnings will be in continuous integration anyway."OFF)
# Libraries
if (UNIXANDNOTAPPLE)
find_package(Threads)
endif()
# Setting compiler options for snippets
# In a more serious project, we would do that per target
if (BUILD_WITH_PEDANTIC_WARNINGS)
if (MSVC)
add_compile_options(/W4/WX)
else ()
add_compile_options(-Wall-Wextra-pedantic-Werror)
if (CMAKE_CXX_COMPILER_IDSTREQUAL"Clang"ORCMAKE_CXX_COMPILER_IDSTREQUAL"AppleClang")