updating renderer work done
This commit is contained in:
@@ -8,10 +8,23 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")
|
||||
|
||||
# This assumes the SDL source is available in SDL
|
||||
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(external/SDL EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(external/cglm EXCLUDE_FROM_ALL)
|
||||
#add_subdirectory(glad EXCLUDE_FROM_ALL)
|
||||
|
||||
# Create your game executable target as usual
|
||||
add_executable(BeyondDepth WIN32 main.c)
|
||||
add_executable(BeyondDepth src/main.c
|
||||
src/engine/core/logger/log.c
|
||||
src/engine/renderer/camera/camera.c
|
||||
src/engine/renderer/camera/camera.h
|
||||
external/glad/src/glad.c
|
||||
src/engine/renderer/shaders/shader.c
|
||||
src/engine/renderer/shaders/shader.h)
|
||||
|
||||
# Link to the actual SDL3 library.
|
||||
target_link_libraries(BeyondDepth PRIVATE SDL3::SDL3)
|
||||
set_target_properties(BeyondDepth PROPERTIES WIN32_EXECUTABLE FALSE)
|
||||
|
||||
target_include_directories(BeyondDepth PRIVATE external/glad/include)
|
||||
|
||||
target_link_libraries(BeyondDepth PRIVATE
|
||||
SDL3::SDL3
|
||||
cglm)
|
||||
Reference in New Issue
Block a user