Restructured the source files.

This commit is contained in:
douwe
2026-06-15 00:07:00 +02:00
parent 38082e3fc4
commit b130d5c7f7
9 changed files with 3 additions and 1 deletions

View File

@@ -18,7 +18,9 @@ set(TARGET_NAME douwco_hivemind)
include_directories(${CMAKE_SOURCE_DIR}/douwco_hivemind/include)
file(GLOB SRC_FILES ${CMAKE_SOURCE_DIR}/douwco_hivemind/src/*.cpp)
file(GLOB SRC_FILES ${CMAKE_SOURCE_DIR}/douwco_hivemind/src/*/*.cpp)
add_executable(${TARGET_NAME} ${SRC_FILES})
target_link_libraries(${TARGET_NAME} screepsxx)
target_link_options(${TARGET_NAME} PUBLIC -sMODULARIZE=1 --no-entry --bind -sEXPORT_ES6=0)

View File

@@ -21,7 +21,7 @@ Create the makefiles using cmake. For more info look at the readme in screepsxx.
```
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake ..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_TOOLCHAIN_FILE=emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake ..
```
# Build