Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Game Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Onuralp SEZER
Game Library
Commits
5203c914
Commit
5203c914
authored
3 years ago
by
Joseph Walton-Rivers
Browse files
Options
Downloads
Patches
Plain Diff
cleanup opengl import - confine to gfx module
parent
a7debb23
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+4
-3
4 additions, 3 deletions
CMakeLists.txt
fggl/CMakeLists.txt
+1
-1
1 addition, 1 deletion
fggl/CMakeLists.txt
fggl/gfx/CMakeLists.txt
+1
-0
1 addition, 0 deletions
fggl/gfx/CMakeLists.txt
with
6 additions
and
4 deletions
CMakeLists.txt
+
4
−
3
View file @
5203c914
cmake_minimum_required
(
VERSION 3.1
0
)
cmake_minimum_required
(
VERSION 3.1
3
)
project
(
FGGL VERSION 0.1 LANGUAGES CXX
)
...
...
@@ -13,8 +13,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package
(
glfw3
)
if
(
NOT glfw3_FOUND
)
include
(
FetchContent
)
set
(
GLFW_BUILD_EXAMPLES OFF
)
set
(
GLFW_BUILD_TESTS OFF
)
set
(
GLFW_BUILD_DOCS OFF CACHE BOOL
""
FORCE
)
set
(
GLFW_BUILD_TESTS OFF CACHE BOOL
""
FORCE
)
set
(
GLFW_BUILD_EXAMPLES OFF CACHE BOOL
""
FORCE
)
if
(
FGGL_WAYLAND
)
set
(
GLFW_USE_WAYLAND True
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
fggl/CMakeLists.txt
+
1
−
1
View file @
5203c914
...
...
@@ -14,7 +14,7 @@ target_include_directories(fggl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../)
# Graphics backend
add_subdirectory
(
gfx
)
target_link_libraries
(
fggl glfw
${
OPENGL_gl_LIBRARY
}
GLEW
)
target_link_libraries
(
fggl glfw
)
# Debug backend
add_subdirectory
(
debug
)
...
...
This diff is collapsed.
Click to expand it.
fggl/gfx/CMakeLists.txt
+
1
−
0
View file @
5203c914
...
...
@@ -2,6 +2,7 @@
# OpenGL Backend
find_package
(
OpenGL REQUIRED
)
include_directories
(
${
OPENGL_INCLUDE_DIR
}
)
target_link_libraries
(
fggl OpenGL::OpenGL GLEW
)
# GLEW
find_package
(
GLEW REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment