From f6ab66c262e14c3b4a469862e1b96bd3eaad2caa Mon Sep 17 00:00:00 2001 From: Gregory Gauthier Date: Fri, 30 Jan 2026 12:59:43 +0000 Subject: [PATCH] Okay. I give up. CMakeLists.txt must remain. You win. --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..c4d03b4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 4.1) +project(cnotes C) + +# Force strict C90/ANSI compliance +set(CMAKE_C_STANDARD 90) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_C_EXTENSIONS OFF) + +# Strict warning flags to match Makefile +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ansi -Wpedantic -Wall -Wextra") + +include_directories(include) + +# Separate executables (not a single combined binary) +add_executable(cnadd src/cnadd.c) +add_executable(cndump src/cndump.c)