Can now load models from file, kinda
This commit is contained in:
parent
4c3c1687ef
commit
ac5bf9abdb
13 changed files with 10247 additions and 12 deletions
18
examples/model_loading/CMakeLists.txt
Normal file
18
examples/model_loading/CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
add_executable(model_loading "main.cpp")
|
||||
|
||||
find_package(glfw3 REQUIRED)
|
||||
|
||||
target_include_directories(model_loading PRIVATE
|
||||
glfw
|
||||
)
|
||||
|
||||
target_link_libraries(model_loading PRIVATE
|
||||
"$<TARGET_FILE_DIR:openglu>/$<TARGET_FILE_BASE_NAME:openglu>.lib"
|
||||
glfw
|
||||
)
|
||||
|
||||
add_custom_command(TARGET model_loading POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:openglu> $<TARGET_FILE:glfw> $<TARGET_FILE_DIR:model_loading>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/shaders $<TARGET_FILE_DIR:model_loading>/shaders
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/assets $<TARGET_FILE_DIR:model_loading>/assets
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue