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
54309754
Commit
54309754
authored
2 years ago
by
Joseph Walton-Rivers
Browse files
Options
Downloads
Patches
Plain Diff
fix cmake files - Linux-compatable include syntax
parent
84135396
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
demo/CMakeLists.txt
+2
-2
2 additions, 2 deletions
demo/CMakeLists.txt
fggl/CMakeLists.txt
+6
-2
6 additions, 2 deletions
fggl/CMakeLists.txt
fggl/phys/bullet/CMakeLists.txt
+11
-1
11 additions, 1 deletion
fggl/phys/bullet/CMakeLists.txt
with
20 additions
and
6 deletions
.gitlab-ci.yml
+
1
−
1
View file @
54309754
...
@@ -21,7 +21,7 @@ stages: # List of stages for jobs, and their order of execution
...
@@ -21,7 +21,7 @@ stages: # List of stages for jobs, and their order of execution
-
deploy
-
deploy
.f34-ogl
:
.f34-ogl
:
image
:
git.fossgalaxy.com:8042/gamedev/containers/fedora:3
4
-opengl
image
:
git.fossgalaxy.com:8042/gamedev/containers/fedora:3
6
-opengl
before_script
:
before_script
:
-
dnf install -y pkgconfig\(dri\) pkgconfig\(glu\) pkgconfig\(x11\) pkgconfig\(xcursor\) pkgconfig\(xi\) pkgconfig\(xinerama\) pkgconfig\(xrandr\) doxygen
-
dnf install -y pkgconfig\(dri\) pkgconfig\(glu\) pkgconfig\(x11\) pkgconfig\(xcursor\) pkgconfig\(xi\) pkgconfig\(xinerama\) pkgconfig\(xrandr\) doxygen
-
dnf install -y glm-devel glfw-devel openal-soft-devel spdlog-devel freetype-devel yaml-cpp-devel assimp-devel bullet-devel
-
dnf install -y glm-devel glfw-devel openal-soft-devel spdlog-devel freetype-devel yaml-cpp-devel assimp-devel bullet-devel
...
...
This diff is collapsed.
Click to expand it.
demo/CMakeLists.txt
+
2
−
2
View file @
54309754
#
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required
(
VERSION 3.16
)
#
project(demo)
project
(
demo
)
# Executable
# Executable
add_executable
(
demo
add_executable
(
demo
...
...
This diff is collapsed.
Click to expand it.
fggl/CMakeLists.txt
+
6
−
2
View file @
54309754
...
@@ -64,8 +64,12 @@ find_package(yaml-cpp)
...
@@ -64,8 +64,12 @@ find_package(yaml-cpp)
target_link_libraries
(
fggl PUBLIC yaml-cpp
)
target_link_libraries
(
fggl PUBLIC yaml-cpp
)
# model loading
# model loading
find_package
(
assimp
)
find_package
(
assimp CONFIG
)
target_link_libraries
(
${
PROJECT_NAME
}
PUBLIC assimp::assimp
)
if
(
MSVC
)
target_link_libraries
(
${
PROJECT_NAME
}
PUBLIC assimp::assimp
)
else
()
target_link_libraries
(
${
PROJECT_NAME
}
PUBLIC assimp
)
endif
()
find_package
(
Freetype
)
find_package
(
Freetype
)
target_link_libraries
(
${
PROJECT_NAME
}
PUBLIC Freetype::Freetype
)
target_link_libraries
(
${
PROJECT_NAME
}
PUBLIC Freetype::Freetype
)
...
...
This diff is collapsed.
Click to expand it.
fggl/phys/bullet/CMakeLists.txt
+
11
−
1
View file @
54309754
...
@@ -4,7 +4,17 @@ if ( NOT Bullet_FOUND )
...
@@ -4,7 +4,17 @@ if ( NOT Bullet_FOUND )
message
(
WARNING
"Bullet not found - disabling bullet physics integration"
)
message
(
WARNING
"Bullet not found - disabling bullet physics integration"
)
else
()
else
()
message
(
STATUS
"Bullet found"
)
message
(
STATUS
"Bullet found"
)
target_link_libraries
(
fggl PUBLIC LinearMath Bullet3Common BulletCollision BulletDynamics BulletSoftBody
)
if
(
MSVC
)
# see https://github.com/microsoft/vcpkg/issues/7877
target_link_libraries
(
fggl PUBLIC LinearMath Bullet3Common BulletDynamics BulletSoftBody BulletCollision BulletInverseDynamics
)
else
()
# FIXME: this shouldn't be necessary, for modern cmake, linking the libraries should be enough
target_compile_definitions
(
fggl PUBLIC
${
BULLET_DEFINITIONS
}
)
target_include_directories
(
fggl PUBLIC
${
BULLET_INCLUDE_DIRS
}
)
target_link_libraries
(
fggl PUBLIC
${
BULLET_LIBRARIES
}
)
endif
()
# bullet cpp files
# bullet cpp files
target_sources
(
fggl
target_sources
(
fggl
...
...
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