(vibe) Added testframework

This commit is contained in:
douwe
2026-03-19 08:44:01 +01:00
parent 49f253a546
commit 50cd7c10ce
15 changed files with 772 additions and 4 deletions

View File

@@ -19,7 +19,11 @@ set(TARGET_NAME douwco_hivemind)
include_directories(${CMAKE_SOURCE_DIR}/douwco_hivemind/include)
file(GLOB SRC_FILES ${CMAKE_SOURCE_DIR}/douwco_hivemind/src/*.cpp)
add_executable(${TARGET_NAME} ${SRC_FILES})
file(GLOB TEST_FILES ${CMAKE_SOURCE_DIR}/douwco_hivemind/src/Testing/*.cpp)
# Combine source files
set(ALL_SRC_FILES ${SRC_FILES} ${TEST_FILES})
add_executable(${TARGET_NAME} ${ALL_SRC_FILES})
target_link_libraries(${TARGET_NAME} screepsxx)
target_link_options(${TARGET_NAME} PUBLIC -sMODULARIZE=1 --no-entry --bind -sEXPORT_ES6=0)