Commit c1df78bf authored by Shu's avatar Shu 🍠
Browse files

Move resources

parent 734b5b7a
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.11)
project (univerxel VERSION 0.0.1)
cmake_policy(SET CMP0072 NEW)
find_package(OpenGL REQUIRED)
find_package(glm REQUIRED)
option(PROFILING "Build with profiling" 0)
option(FIXED_WINDOW "Lock window size: Force floating on i3" 0)
......@@ -60,9 +61,7 @@ else(PROFILING)
target_compile_definitions(univerxel PRIVATE FIXED_WINDOW=${FIXED_WINDOW} HN_USE_FILESYSTEM=1)
endif(PROFILING)
file(COPY content/shaders DESTINATION ${CMAKE_BINARY_DIR}/content)
file(COPY content/textures DESTINATION ${CMAKE_BINARY_DIR}/content)
file(COPY resource/content DESTINATION ${CMAKE_BINARY_DIR})
# Docs
add_custom_target(docs
......@@ -71,18 +70,6 @@ add_custom_target(docs
COMMENT "Build doc."
)
# Zstd dictionary
file(GLOB SMP_SOURCES "src/zstd_sampler.cpp" "src/world/Chunk.cpp" "include/FastNoiseSIMD/*.cpp")
add_executable(zstd_sampler EXCLUDE_FROM_ALL ${SMP_SOURCES})
target_compile_features(zstd_sampler PUBLIC cxx_std_17)
target_link_libraries(zstd_sampler ${LINKED_LIBS})
target_include_directories(zstd_sampler PRIVATE "include/FastNoiseSIMD" "include/robin_hood")
# target_compile_definitions(zstd_sampler PRIVATE HN_USE_FILESYSTEM=1)
add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/content/zstd.dict"
COMMAND "${CMAKE_BINARY_DIR}/zstd_sampler" DEPENDS zstd_sampler)
add_custom_target(generate_dictionary DEPENDS "${CMAKE_BINARY_DIR}/content/zstd.dict")
# Builtin models
file(GLOB_RECURSE MCT_SOURCES "src/model_contouring.cpp" "src/*/*.cpp")
add_executable(model_contouring EXCLUDE_FROM_ALL ${MCT_SOURCES} ${INCLUDE_SOURCES})
......
......@@ -19,17 +19,17 @@ Work in progress galaxy down to atom (mostly centimeter) voxel game
<!-- ABOUT THE PROJECT -->
## About The Project
Experimental project using OpenGL.
Experimental project using OpenGL and Vulkan.
### Built With
* C++
* OpenGL
* Vulkan
* ImGui
* FasNoiseSIMD
* Toml++
* Tracy
* Love and insomnia
......@@ -41,13 +41,17 @@ To get a local copy up and running, follow these simple steps.
### Prerequisites
* C++17
* CMake
* OpenGL
* GLFw
* Glew
* OpenGL or Vulkan driver
* GLFw3
* Zstd
#### Build
* C++17
* CMake 3.11
* GLEW
* GLM
#### Optionally
* Python: utility scripts
......@@ -56,7 +60,7 @@ To get a local copy up and running, follow these simple steps.
1. Clone the project repo
```sh
git clone --recursive https://git.wadza.fr/me/univerxel.git
git lfs clone --recursive https://git.wadza.fr/me/univerxel.git
```
2. Create build folder and move
```sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment