instructed/tilemap/CMakeLists.txt
szdytom b6656f5023
feat: Add biome-based terrain generation and Perlin noise implementation
- Introduced a new biome system with various biome types and properties.
- Implemented terrain generation using Perlin noise to create diverse landscapes.
- Added examples for basic tilemap generation and biome analysis.
- Created helper functions for displaying tiles and biomes in the console.
- Enhanced the TileMap class to support chunk-based tile management.
- Developed a PerlinNoise class for generating smooth noise patterns.
- Updated generation configuration to include climate parameters for biomes.
- Implemented error handling for out-of-bounds access in TileMap.

Signed-off-by: szdytom <szdytom@qq.com>
2025-08-01 14:28:36 +08:00

23 lines
519 B
CMake

cmake_minimum_required(VERSION 3.27)
# Define the tilemap library source files
set(ISTD_TILEMAP_SRC
src/generation.cpp
src/tilemap.cpp
src/noise.cpp
src/biome.cpp
)
# Create the tilemap library
add_library(istd_tilemap ${ISTD_TILEMAP_SRC})
# Set library properties
target_compile_features(istd_tilemap PUBLIC cxx_std_23)
target_include_directories(istd_tilemap PUBLIC include)
# Optionally build examples
option(BUILD_EXAMPLES "Build example programs" ON)
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()