(vibe) Added testframework
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user