1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
cmake_minimum_required(VERSION 3.0) project(font) set(CMAKE_C_STANDARD 17) set(CMAKE_C_STANDARD_REQUIRED On) set(CMAKE_C_EXTENSIONS Off) add_library(font font.c) target_include_directories(font PUBLIC .) target_compile_options(font PRIVATE -Wall -Wextra -Wpedantic)