This commit is contained in:
2026-04-28 09:42:27 -05:00
parent 8ff66ac1e2
commit 44a51acad1
6 changed files with 107 additions and 32 deletions

View File

@@ -64,6 +64,7 @@ add_library(lib${PROJECT_NAME} STATIC
src/bytecode/bytecode.cc
src/bytecode/bytecode.hh
src/bytecode/bytecodeprototype.hh
src/common/overloaded.hh
)
target_compile_options(lib${PROJECT_NAME} PRIVATE ${warnings})
@@ -72,8 +73,7 @@ target_compile_options(lib${PROJECT_NAME} PRIVATE ${warnings})
# tests
#
add_executable(${PROJECT_NAME}-bytecode-test src/bytecode/tests.cc
common/overloaded.hh)
add_executable(${PROJECT_NAME}-bytecode-test src/bytecode/tests.cc)
target_link_libraries(${PROJECT_NAME}-bytecode-test lib${PROJECT_NAME} gtest_main)
add_test(NAME tyche_bytecode_test COMMAND ${PROJECT_NAME}-bytecode-test)