Deleted unused fast noise and added method of installing newer assimp
Moving away from PCG to try to get this project done. Also fed up with manually packaging a newer version of Assimp for every machine I want to build this software on.
This commit is contained in:
parent
5c135950e0
commit
517f8b2d6c
4 changed files with 64 additions and 13 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -4,10 +4,13 @@
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
CMakeFiles/
|
CMakeFiles/
|
||||||
bin/
|
bin/
|
||||||
|
Game
|
||||||
lib/
|
lib/
|
||||||
Makefile
|
Makefile
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
# ignore CPM package manager file
|
||||||
|
cmake/CPM*.cmake
|
||||||
# FastNoise2 extra build files
|
# FastNoise2 extra build files
|
||||||
CPM_modules/
|
CPM_modules/
|
||||||
NoiseTool.ini
|
NoiseTool.ini
|
||||||
|
|
|
||||||
4
.gitmodules
vendored
4
.gitmodules
vendored
|
|
@ -1,7 +1,3 @@
|
||||||
[submodule "data/game-models"]
|
[submodule "data/game-models"]
|
||||||
path = data/game-models
|
path = data/game-models
|
||||||
url = https://git.warwicknew.xyz/game-models/
|
url = https://git.warwicknew.xyz/game-models/
|
||||||
[submodule "deps/FastNoise2"]
|
|
||||||
path = deps/FastNoise2
|
|
||||||
url = https://github.com/Auburn/FastNoise2.git
|
|
||||||
branch = 1001d76
|
|
||||||
|
|
|
||||||
|
|
@ -27,15 +27,68 @@ find_package(GLEW REQUIRED)
|
||||||
find_package(GLM REQUIRED)
|
find_package(GLM REQUIRED)
|
||||||
|
|
||||||
# Model loading
|
# Model loading
|
||||||
find_package(assimp REQUIRED)
|
#find_package(assimp REQUIRED)
|
||||||
if (assimp_VERSION VERSION_LESS "5.1")
|
#if (assimp_VERSION VERSION_LESS "5.1")
|
||||||
message(FATAL_ERROR "Assimp ${assimp_VERSION} out of date, Assimp 5.1.0 or newer is required!")
|
# message(FATAL_ERROR "Assimp ${assimp_VERSION} out of date, Assimp 5.1.0 or newer is required!")
|
||||||
|
#endif()
|
||||||
|
set(CPM_DOWNLOAD_VERSION 0.38.1)
|
||||||
|
set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
|
||||||
|
if(NOT (EXISTS ${CPM_DOWNLOAD_LOCATION}))
|
||||||
|
message(STATUS "Downloading CPM.cmake")
|
||||||
|
file(DOWNLOAD
|
||||||
|
https://github.com/TheLartians/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
|
||||||
|
${CPM_DOWNLOAD_LOCATION}
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
include(${CPM_DOWNLOAD_LOCATION})
|
||||||
|
set(CPM_USE_LOCAL_PACKAGES ON)
|
||||||
|
|
||||||
|
#CPMAddPackage(
|
||||||
|
# NAME SDL2_image
|
||||||
|
# VERSION 2.0.5
|
||||||
|
# URL https://libsdl.org/projects/old/SDL_image/release/SDL2_image-2.0.5.zip
|
||||||
|
#)
|
||||||
|
#CPMAddPackage(
|
||||||
|
# NAME SDL2
|
||||||
|
# VERSION 2.0.12
|
||||||
|
# URL https://libsdl.org/release/SDL2-2.0.12.zip
|
||||||
|
#)
|
||||||
|
#if (SDL2_ADDED)
|
||||||
|
# add_library(SDL2::SDL2 ALIAS SDL2)
|
||||||
|
#endif()
|
||||||
|
|
||||||
|
#CPMAddPackage(
|
||||||
|
# NAME GLM
|
||||||
|
# VERSION 0.9.9.8
|
||||||
|
# GITHUB_REPOSITORY "g-truc/glm"
|
||||||
|
# GIT_TAG "0.9.9.8"
|
||||||
|
#)
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#CPMAddPackage(
|
||||||
|
# NAME GLEW
|
||||||
|
# VERSION 2.2.0
|
||||||
|
# GITHUB_REPOSITORY "nigels-com/glew"
|
||||||
|
# GIT_TAG "glew-2.2.0"
|
||||||
|
#)
|
||||||
|
|
||||||
|
CPMAddPackage(
|
||||||
|
NAME assimp
|
||||||
|
VERSION 5.2.5
|
||||||
|
GITHUB_REPOSITORY "assimp/assimp"
|
||||||
|
GIT_TAG "v5.2.5"
|
||||||
|
)
|
||||||
|
|
||||||
# Build FastNoise2 Library
|
# Build FastNoise2 Library
|
||||||
set(FASTNOISE2_NOISETOOL ON CACHE BOOL "Build Noise Tool" FORCE)
|
#set(FASTNOISE2_NOISETOOL ON CACHE BOOL "Build Noise Tool" FORCE)
|
||||||
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build Noise Tool Dynamic Library" FORCE)
|
#set(BUILD_SHARED_LIBS ON CACHE BOOL "Build Noise Tool Dynamic Library" FORCE)
|
||||||
add_subdirectory(deps/FastNoise2)
|
##add_subdirectory(deps/FastNoise2)
|
||||||
|
#CPMAddPackage(
|
||||||
|
# NAME FastNoise2
|
||||||
|
# VERSION 0.9.7
|
||||||
|
# GITHUB_REPOSITORY "Auburn/FastNoise2"
|
||||||
|
# GIT_TAG "v0.9.2-alpha"
|
||||||
|
#)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${SDL2_INCLUDE_DIRS}
|
${SDL2_INCLUDE_DIRS}
|
||||||
|
|
@ -51,5 +104,5 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||||
${SDL2_IMAGE_LIBRARIES}
|
${SDL2_IMAGE_LIBRARIES}
|
||||||
${OPENGL_LIBRARIES}
|
${OPENGL_LIBRARIES}
|
||||||
${GLEW_LIBRARIES}
|
${GLEW_LIBRARIES}
|
||||||
${ASSIMP_LIBRARIES}
|
assimp::assimp
|
||||||
FastNoise)
|
)
|
||||||
|
|
|
||||||
1
deps/FastNoise2
vendored
1
deps/FastNoise2
vendored
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 73c6e582052275cd073ebae7790f8874b9c194ba
|
|
||||||
Loading…
Reference in a new issue