Restructure project

This commit is contained in:
2024-12-07 15:46:02 +01:00
parent 991093d352
commit e4378dcddc
52 changed files with 36 additions and 37 deletions

View File

@@ -26,3 +26,4 @@ endif()
add_subdirectory(${PROJECT_SOURCE_DIR}/lib) add_subdirectory(${PROJECT_SOURCE_DIR}/lib)
add_subdirectory(${PROJECT_SOURCE_DIR}/src) add_subdirectory(${PROJECT_SOURCE_DIR}/src)
add_subdirectory(${PROJECT_SOURCE_DIR}/apps)

View File

@@ -1,2 +1,35 @@
add_subdirectory(lib) add_library(fever_core
add_subdirectory(bin) components/transform.cpp
core/application.cpp
core/camera.cpp
core/glad.cpp
core/graphics/framebuffer.cpp
core/graphics/image.cpp
core/graphics/material.cpp
core/graphics/mesh.cpp
core/light.cpp
core/render.cpp
core/shader.cpp
core/time.cpp
input/input.cpp
scene/gltf.cpp
scene/gltf_loader.cpp
util/log.cpp
window/window.cpp
)
target_compile_features(fever_core PUBLIC cxx_std_20)
target_include_directories(fever_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(
fever_core PUBLIC
glad
glfw
EnTT::EnTT
pthread
spdlog
glm::glm
fx-gltf::fx-gltf
nlohmann_json::nlohmann_json
stb
)

View File

@@ -1,35 +0,0 @@
add_library(fever_core
components/transform.cpp
core/application.cpp
core/camera.cpp
core/glad.cpp
core/graphics/framebuffer.cpp
core/graphics/image.cpp
core/graphics/material.cpp
core/graphics/mesh.cpp
core/light.cpp
core/render.cpp
core/shader.cpp
core/time.cpp
input/input.cpp
scene/gltf.cpp
scene/gltf_loader.cpp
util/log.cpp
window/window.cpp
)
target_compile_features(fever_core PUBLIC cxx_std_20)
target_include_directories(fever_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(
fever_core PUBLIC
glad
glfw
EnTT::EnTT
pthread
spdlog
glm::glm
fx-gltf::fx-gltf
nlohmann_json::nlohmann_json
stb
)