Files
fifo_ipc/CMakeLists.txt
2025-07-09 22:29:01 +08:00

26 lines
614 B
CMake

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 123913715afeb8a437e6388b4473fcc4753e1c9a # 11.1.4
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)