aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/CMakeLists.txt
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-10-01 01:04:30 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2026-10-11 00:14:35 +0200
commit4ce39e4fc1de9536de7dedfe91b6dee38dec76ae (patch)
treef9820f96b8eab624430c3700f32a2878a7036ee2 /src/prc1/CMakeLists.txt
parent9140988be4e5bb028b7140aca1a67af1370c72a7 (diff)
downloadprc-4ce39e4fc1de9536de7dedfe91b6dee38dec76ae.tar.gz
WIP sym + cgen
Diffstat (limited to 'src/prc1/CMakeLists.txt')
-rw-r--r--src/prc1/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/prc1/CMakeLists.txt b/src/prc1/CMakeLists.txt
index f5dfa86..82d670d 100644
--- a/src/prc1/CMakeLists.txt
+++ b/src/prc1/CMakeLists.txt
@@ -17,7 +17,9 @@ add_executable(prc1
lit.c
lk.c
prc1.c
+ reset.c
set.c
+ sym.c
parse.c
pop.c
pr.c
@@ -33,10 +35,12 @@ add_executable(prc1
ws.c
)
+target_include_directories(prc1 PRIVATE ${CMAKE_CURRENT_LIST_DIR})
target_compile_options(prc1 PRIVATE -g -Wall -pedantic)
set_target_properties(prc1 PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_options(prc1 PRIVATE -Og)
endif()
+add_subdirectory(cgen)
include(GNUInstallDirs)
install(TARGETS prc1 DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/${PROJECT_NAME})