mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-13 07:45:39 +07:00
manual include glew-cmake to cmake
This commit is contained in:
@@ -116,6 +116,9 @@ file(GLOB_RECURSE E2D_3RDPARTY
|
||||
# e2d external 3rd party
|
||||
#
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
add_subdirectory(modules/defer.hpp)
|
||||
add_subdirectory(modules/ecs.hpp)
|
||||
add_subdirectory(modules/enum.hpp)
|
||||
@@ -130,12 +133,6 @@ set(GLFW_BUILD_EXAMPLES OFF CACHE INTERNAL "" FORCE)
|
||||
add_subdirectory(modules/glfw)
|
||||
set_target_properties(glfw PROPERTIES FOLDER modules)
|
||||
|
||||
set(glew-cmake_BUILD_SHARED OFF CACHE INTERNAL "" FORCE)
|
||||
set(glew-cmake_BUILD_MULTI_CONTEXT OFF CACHE INTERNAL "" FORCE)
|
||||
|
||||
add_subdirectory(modules/glew)
|
||||
set_target_properties(libglew_static PROPERTIES FOLDER modules)
|
||||
|
||||
#
|
||||
# e2d library target
|
||||
#
|
||||
@@ -159,7 +156,8 @@ target_link_libraries(${PROJECT_NAME}
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE glfw
|
||||
PRIVATE libglew_static
|
||||
PRIVATE OpenGL::GL
|
||||
PRIVATE Threads::Threads
|
||||
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:winmm.lib>)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
@@ -168,7 +166,8 @@ target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC headers/3rdparty/imgui
|
||||
PUBLIC headers/3rdparty/pugixml
|
||||
PRIVATE sources
|
||||
PRIVATE sources/3rdparty)
|
||||
PRIVATE sources/3rdparty
|
||||
PRIVATE sources/3rdparty/glew)
|
||||
|
||||
target_compile_options(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
|
||||
Submodule modules/glew updated: 5ab6ba3039...438bedae7e
@@ -23,6 +23,14 @@ mkdir -p $SOURCES_RDPARTY_DIR
|
||||
mkdir -p $UNTESTS_DIR/catch
|
||||
cp -fv $MODULES_DIR/catch2/single_include/catch2/catch.hpp $UNTESTS_DIR/catch/catch.hpp
|
||||
|
||||
#
|
||||
# glew
|
||||
#
|
||||
|
||||
mkdir -p $SOURCES_RDPARTY_DIR/glew
|
||||
cp -rfv $MODULES_DIR/glew/include/. $SOURCES_RDPARTY_DIR/glew/
|
||||
cp -fv $MODULES_DIR/glew/src/glew.c $SOURCES_RDPARTY_DIR/glew/glew.c
|
||||
|
||||
#
|
||||
# imgui
|
||||
#
|
||||
|
||||
3051
sources/3rdparty/glew/GL/eglew.h
vendored
Normal file
3051
sources/3rdparty/glew/GL/eglew.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
26427
sources/3rdparty/glew/GL/glew.h
vendored
Normal file
26427
sources/3rdparty/glew/GL/glew.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1831
sources/3rdparty/glew/GL/glxew.h
vendored
Normal file
1831
sources/3rdparty/glew/GL/glxew.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1468
sources/3rdparty/glew/GL/wglew.h
vendored
Normal file
1468
sources/3rdparty/glew/GL/wglew.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
31949
sources/3rdparty/glew/glew.c
vendored
Normal file
31949
sources/3rdparty/glew/glew.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user