mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-16 14:08:59 +07:00
remove assimp dependence from main project
This commit is contained in:
@@ -97,9 +97,6 @@ endif(APPLE)
|
|||||||
|
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
FetchContent_Declare(
|
|
||||||
assimp
|
|
||||||
GIT_REPOSITORY https://github.com/assimp/assimp)
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
glew
|
glew
|
||||||
GIT_REPOSITORY https://github.com/Perlmint/glew-cmake)
|
GIT_REPOSITORY https://github.com/Perlmint/glew-cmake)
|
||||||
@@ -107,19 +104,9 @@ FetchContent_Declare(
|
|||||||
glfw
|
glfw
|
||||||
GIT_REPOSITORY https://github.com/glfw/glfw)
|
GIT_REPOSITORY https://github.com/glfw/glfw)
|
||||||
|
|
||||||
FetchContent_GetProperties(assimp)
|
|
||||||
FetchContent_GetProperties(glew)
|
FetchContent_GetProperties(glew)
|
||||||
FetchContent_GetProperties(glfw)
|
FetchContent_GetProperties(glfw)
|
||||||
|
|
||||||
if(NOT assimp_POPULATED)
|
|
||||||
FetchContent_Populate(assimp)
|
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
|
||||||
set(ASSIMP_NO_EXPORT ON CACHE BOOL "" FORCE)
|
|
||||||
set(ASSIMP_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
|
||||||
set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE BOOL "" FORCE)
|
|
||||||
add_subdirectory(${assimp_SOURCE_DIR} ${assimp_BINARY_DIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT glew_POPULATED)
|
if(NOT glew_POPULATED)
|
||||||
FetchContent_Populate(glew)
|
FetchContent_Populate(glew)
|
||||||
set(glew-cmake_BUILD_SHARED OFF CACHE BOOL "" FORCE)
|
set(glew-cmake_BUILD_SHARED OFF CACHE BOOL "" FORCE)
|
||||||
@@ -153,8 +140,6 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES
|
|||||||
target_include_directories(${PROJECT_NAME}
|
target_include_directories(${PROJECT_NAME}
|
||||||
PRIVATE headers
|
PRIVATE headers
|
||||||
PRIVATE sources
|
PRIVATE sources
|
||||||
PRIVATE ${assimp_SOURCE_DIR}/include
|
|
||||||
PRIVATE ${assimp_BINARY_DIR}/include
|
|
||||||
PRIVATE ${glew_SOURCE_DIR}/include
|
PRIVATE ${glew_SOURCE_DIR}/include
|
||||||
PRIVATE ${glfw_SOURCE_DIR}/include)
|
PRIVATE ${glfw_SOURCE_DIR}/include)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user