Using assimp instead for model importing.

This commit is contained in:
Nicolás A. Ortega Froysa 2018-12-12 08:57:14 +01:00
parent 16d2bd6466
commit e2d9fe9189
2 changed files with 5 additions and 2553 deletions

View File

@ -31,13 +31,14 @@ message(STATUS "Build Type: ${CMAKE_BUILD_TYPE}")
# prefer newer versions of OpenGL
set(OpenGL_GL_PREFERENCE "GLVND")
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(GLEW REQUIRED)
find_package(GLUT REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_search_module(ASSIMP REQUIRED assimp)
pkg_search_module(SDL2 REQUIRED sdl2)
include_directories(
SYSTEM "include/"
SYSTEM ${ASSIMP_INCLUDE_DIRS}
SYSTEM ${SDL2_INCLUDE_DIRS})
set(SRCS
@ -66,6 +67,7 @@ add_executable(${TARGET_NAME}
target_link_libraries(${TARGET_NAME}
OpenGL::OpenGL
OpenGL::GLU
${GLUT_LIBRARIES}
${ASSIMP_LIBRARIES}
${GLEW_LIBRARIES}
${GLUT_LIBRARIES}
${SDL2_LIBRARIES})

File diff suppressed because it is too large Load Diff