Merge pull request #4 from FoxMoss/main

Add CMake Support
This commit is contained in:
WSAL Evan 2024-10-04 18:24:25 -04:00 committed by GitHub
commit 8b26492b78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 32 additions and 1 deletions

2
.gitignore vendored
View File

@ -410,3 +410,5 @@ FodyWeavers.xsd
*.sln.iml
imgui.ini
build/

View File

@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 20)
project(ScuffedMinecraft)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory(vendor/imgui)
add_subdirectory(src)

View File

@ -0,0 +1,9 @@
add_executable(scuffed_mc
Application.cpp Chunk.cpp Shader.cpp
Block.cpp NoiseSettings.cpp SurfaceFeature.cpp
Camera.cpp Planet.cpp WorldGen.cpp ../vendor/glad.c
)
include_directories(../../Dependencies/include/)
target_link_libraries(scuffed_mc imgui glfw)

View File

@ -0,0 +1,11 @@
add_library(imgui
imgui.cpp
imgui_demo.cpp
imgui_draw.cpp
imgui_impl_glfw.cpp
imgui_impl_opengl3.cpp
imgui_tables.cpp
imgui_widgets.cpp
)
target_include_directories(imgui PUBLIC ./)