added imgui and fmt, started working on ui

This commit is contained in:
2026-05-11 00:36:17 -04:00
parent 0b495e1e40
commit 15dc62a36c
8 changed files with 111 additions and 24 deletions

View File

@@ -21,29 +21,19 @@ add_subdirectory(_ThirdParty/glm)
add_subdirectory(_ThirdParty/entt)
add_subdirectory(_ThirdParty/fmt)
include_directories(_ThirdParty/imgui/lib)
file(GLOB_RECURSE IMGUI_SOURCES _ThirdParty/imgui/lib/*.cpp)
file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/src/*.cpp)
file(GLOB_RECURSE HEADERS ${CMAKE_SOURCE_DIR}/src/*.h)
add_executable(${PROJECT_NAME}
src/main.cpp
${IMGUI_SOURCES}
${GLAD_SOURCE_DIR}/gl.c
src/Mesh.cpp
src/Mesh.h
src/Model.h
src/Material.h
src/ModelManager.cpp
src/ModelManager.h
src/ShaderProgram.cpp
src/ShaderProgram.h
src/Texture.h
src/TextureManager.cpp
src/TextureManager.h
src/ShaderManager.cpp
src/ShaderManager.h
src/FreeCamera.cpp
src/FreeCamera.h
src/InputManager.cpp
src/InputManager.h
src/Components.h
src/Scene.cpp
src/Scene.h)
${SOURCES}
${HEADERS})
add_custom_target(copy_resources
COMMAND ${CMAKE_COMMAND} -E copy_directory
@@ -52,5 +42,5 @@ add_custom_target(copy_resources
COMMENT "Copying resources..."
)
target_link_libraries(${PROJECT_NAME} glfw spdlog assimp glm EnTT)
target_link_libraries(${PROJECT_NAME} glfw spdlog assimp glm EnTT fmt)
target_include_directories(${PROJECT_NAME} PRIVATE ${ASSIMP_INCLUDE_INSTALL_DIR})