Releases: cvlnomen/Cpp-Particle-System
Releases · cvlnomen/Cpp-Particle-System
Release list
Release v3.1
It is now possible to fetch this library from GitHub and build it, by using the FetchContent_Declare CMake command.
An example CMakeList.txt file:
cmake_minimum_required(VERSION 3.22)
project(test_project)
set(CMAKE_CXX_STANDARD 17)
find_package(cpp-particle-system 3.1 QUIET)
if (NOT cpp-particle-system_FOUND) # Fetch and build cpp-particle-system if the package has not been found.
include(FetchContent)
FetchContent_Declare(
cpp-particle-system
URL https://github.com/cvlnomen/Cpp-Particle-System/archive/refs/tags/v3.1.tar.gz
)
FetchContent_GetProperties(cpp-particle-system)
if (NOT cpp-particle-system_POPULATED)
set(FETCHCONTENT_QUIET NO)
FetchContent_Populate(cpp-particle-system)
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the example projects
add_subdirectory(${cpp-particle-system_SOURCE_DIR} ${cpp-particle-system_BINARY_DIR})
endif()
endif()
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE cpp-particle-system)Release v3.0
Improved the codebase and added an sdl2 example project.