Files
Calculator/test/CMakeLists.txt
laentropia ac2e783ccc fix: tests and implementation of lexer
Just a few details here and there, nothing wrong, everything else is
going well.
2026-04-30 09:58:27 -06:00

25 lines
537 B
CMake

find_package(cmocka REQUIRED)
add_executable(test_lexer test_lexer.c)
add_executable(test_parser test_parser.c)
add_executable(test_evaluator test_evaluator.c)
target_link_libraries(test_lexer
calculator_lib
cmocka::cmocka
)
target_link_libraries(test_parser
calculator_lib
cmocka::cmocka
)
target_link_libraries(test_evaluator
calculator_lib
cmocka::cmocka
)
add_test(NAME lexer_tests COMMAND test_lexer)
add_test(NAME parser_tests COMMAND test_parser)
add_test(NAME evaluator_tests COMMAND test_evaluator)