From b25ff71bb198c227b3202ee32a8067cda413bc16 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 9 May 2026 02:56:07 +0200 Subject: Add project skeleton --- CMakeLists.txt | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b49490c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,39 @@ +cmake_minimum_required(VERSION 3.5) +project(prc C) +add_executable(${PROJECT_NAME} + call.c + cgen.c + display.c + div.c + errloc.c + exit.c + fn.c + gl.c + im.c + kw.c + lex.c + lit.c + lk.c + main.c + set.c + parse.c + pop.c + pr.c + print.c + push.c + sdup.c + stmt.c + storage.c + td.c + type.c + warn.c + ws.c +) + +target_compile_options(${PROJECT_NAME} PRIVATE -g -Wall -std=c99 -pedantic) + +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + target_compile_options(${PROJECT_NAME} PRIVATE -Og) +endif() + +install(TARGETS ${PROJECT_NAME}) -- cgit v1.2.3