diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 075c4b74..022b0824 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -38,6 +38,13 @@ jobs: sudo apt-get install libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev libvorbis-dev sudo ln -s /usr/lib/x86_64-linux-gnu/libluajit-5.1.a /usr/lib/x86_64-linux-gnu/liblua-5.1.a sudo ln -s /usr/include/luajit-2.1 /usr/include/lua + - name: Install EnTT + run: | + git clone https://github.com/skypjack/entt.git + cd entt/build + cmake -DCMAKE_BUILD_TYPE=Release .. + sudo make install + cd ../.. - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 371e1ac1..dd7152ab 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -17,7 +17,7 @@ jobs: - name: Install dependencies from brew run: | - brew install glfw3 glew libpng openal-soft luajit libvorbis + brew install glfw3 glew libpng openal-soft luajit libvorbis skypjack/entt/entt - name: Install specific version of GLM run: | @@ -48,4 +48,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: VoxelEngineMacOs - path: VoxelEngineMacApp.dmg \ No newline at end of file + path: VoxelEngineMacApp.dmg diff --git a/CMakeLists.txt b/CMakeLists.txt index 1da3b155..271238e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,6 +84,7 @@ find_package(OpenGL REQUIRED) find_package(GLEW REQUIRED) find_package(OpenAL REQUIRED) find_package(ZLIB REQUIRED) +find_package(EnTT REQUIRED) if (WIN32) if(VOXELENGINE_BUILD_WINDOWS_VCPKG) diff --git a/README.md b/README.md index b248c8ed..65422cfc 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,14 @@ cmake --build . ## Install libs: +#### Install EnTT +```sh +git clone https://github.com/skypjack/entt.git +cd entt/build +cmake -DCMAKE_BUILD_TYPE=Release .. +sudo make install +``` + #### Debian-based distro: ```sh sudo apt install libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev libvorbis-dev @@ -59,7 +67,7 @@ sudo pacman -S glfw-wayland glew glm libpng libvorbis openal luajit #### macOS: ``` -brew install glfw3 glew glm libpng libvorbis lua luajit openal-soft +brew install glfw3 glew glm libpng libvorbis lua luajit openal-soft skypjack/entt/entt ``` If homebrew for some reason could not install the necessary packages: ```lua luajit openal-soft```, then download, install and compile them manually (Lua, LuaJIT and OpenAL). diff --git a/vcpkg.json b/vcpkg.json index 8a5f6049..b53f9d40 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -10,6 +10,7 @@ "libspng", "zlib", "luajit", - "libvorbis" + "libvorbis", + "entt" ] }