lexing up and running

This commit is contained in:
Ellen Arvidsson 2025-04-15 20:02:25 +02:00
parent 10e16147ba
commit b9266cdf96
6 changed files with 434 additions and 102 deletions

View file

@ -46,14 +46,18 @@ target_compile_definitions(devcheck PRIVATE
set(MSPH_SRC
${SRC_DIR}/msph/msph_token.c
${SRC_DIR}/msph/token.c
${SRC_DIR}/msph/msph.c
)
set(MSPH_HEADER
${SRC_DIR}/msph/msph_token.h
${INCLUDE_DIR}/msph/token.h
)
add_executable(msph ${MSPH_HEADER} ${MSPH_SRC})
add_executable(msph ${MSPH_SRC} ${MSPH_HEADER})
target_include_directories(msph PRIVATE ${INCLUDE_DIR})
target_link_libraries(devcheck spho)
target_link_libraries(msph spho)
target_compile_definitions(msph PRIVATE
$<$<CONFIG:Debug>:SPHO_DEBUG>
$<$<BOOL:${HAVE_STRLCPY}>:SPHO_USE_STRLCPY>
)