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
90d4b55c
Commit
90d4b55c
authored
2 years ago
by
Joseph Walton-Rivers
Browse files
Options
Downloads
Patches
Plain Diff
make bullet into its own module
parent
09c55805
No related branches found
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
demo/CMakeLists.txt
+1
-1
1 addition, 1 deletion
demo/CMakeLists.txt
integrations/bullet/CMakeLists.txt
+10
-7
10 additions, 7 deletions
integrations/bullet/CMakeLists.txt
with
15 additions
and
11 deletions
CMakeLists.txt
+
4
−
3
View file @
90d4b55c
...
...
@@ -44,9 +44,7 @@ add_subdirectory( fggl )
target_compile_options
(
fggl PRIVATE -Wall -Wpedantic -Wextra -Wodr -fno-strict-aliasing -fno-strict-overflow
)
set_property
(
TARGET fggl PROPERTY INTERPROCEDURAL_OPTIMIZATION True
)
# 3rd party integrations
add_subdirectory
(
integrations/bullet
)
# vendor dependencies
add_subdirectory
(
integrations/entt
)
# Unit Tests
...
...
@@ -129,3 +127,6 @@ export(EXPORT "${PROJECT_NAME}Targets"
NAMESPACE
${
namespace
}
::
)
# 3rd party integrations
add_subdirectory
(
integrations/bullet
)
This diff is collapsed.
Click to expand it.
demo/CMakeLists.txt
+
1
−
1
View file @
90d4b55c
...
...
@@ -15,7 +15,7 @@ target_include_directories(demo
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
target_link_libraries
(
demo fggl
)
target_link_libraries
(
demo fggl
fgglbt
)
find_package
(
spdlog
)
target_link_libraries
(
demo spdlog::spdlog
)
...
...
This diff is collapsed.
Click to expand it.
integrations/bullet/CMakeLists.txt
+
10
−
7
View file @
90d4b55c
...
...
@@ -5,32 +5,35 @@ if ( NOT Bullet_FOUND )
else
()
message
(
STATUS
"Bullet is poorly packaged, you might need to disable support for it"
)
add_library
(
fgglbt STATIC
)
if
(
MSVC
)
# see https://github.com/microsoft/vcpkg/issues/7877
target_link_libraries
(
fggl PUBLIC LinearMath Bullet3Common BulletDynamics BulletSoftBody BulletCollision BulletInverseDynamics
)
target_link_libraries
(
fggl
bt
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_compile_definitions
(
fggl
bt
PUBLIC
${
BULLET_DEFINITIONS
}
)
if
(
BULLET_INCLUDE_DIRS STREQUAL
"include/bullet"
)
message
(
STATUS
"Bullet include path is relative - hard-coding"
)
# FIXME possible debian packing bug: path is relative in BulletConfig.cmake
# FIXME debian packaging bug: BulletConfig.cmake lists BulletInverseDynamics, but that's packaged in bullet-extras
target_include_directories
(
fggl PUBLIC
${
BULLET_ROOT_DIR
}
/
${
BULLET_INCLUDE_DIRS
}
)
target_include_directories
(
fggl
bt
PUBLIC
${
BULLET_ROOT_DIR
}
/
${
BULLET_INCLUDE_DIRS
}
)
else
()
target_include_directories
(
fggl PUBLIC
${
BULLET_INCLUDE_DIRS
}
)
target_include_directories
(
fggl
bt
PUBLIC
${
BULLET_INCLUDE_DIRS
}
)
endif
()
target_link_libraries
(
fggl PUBLIC
${
BULLET_LIBRARIES
}
)
target_link_libraries
(
fggl
bt
PUBLIC
${
BULLET_LIBRARIES
}
)
endif
()
target_include_directories
(
fggl
target_link_libraries
(
fgglbt PUBLIC fggl
)
target_include_directories
(
fgglbt
PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
# bullet cpp files
target_sources
(
fggl
target_sources
(
fggl
bt
PRIVATE
src/module.cpp
src/simulation.cpp
...
...
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