cmake_minimum_required(VERSION 3.11) # FetchContent project(fifo_ipc) if (NOT DEFINED OPTCON_LOCAL_BUILD) include(FetchContent) FetchContent_Declare( fmt GIT_REPOSITORY https://github.com/fmtlib/fmt GIT_TAG 407c905e45ad75fc29bf0f9bb7c5c2fd3475976f # 12.1.0 SYSTEM ) FetchContent_MakeAvailable(fmt) endif() if (MSVC) # https://learn.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170 add_compile_options(/Wall) else() add_compile_options(-Wall -Wextra -Wpedantic) endif() add_subdirectory(src) add_subdirectory(test)