Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eiquadprog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
eiquadprog
Commits
34be6c76
Unverified
Commit
34be6c76
authored
1 year ago
by
Guilhem Saurel
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #48 from nim65s/devel
update packaging & tooling
parents
49e6e1bb
3d3b39d2
No related branches found
No related tags found
No related merge requests found
Pipeline
#37286
passed
1 year ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.pre-commit-config.yaml
+1
-1
1 addition, 1 deletion
.pre-commit-config.yaml
CMakeLists.txt
+18
-6
18 additions, 6 deletions
CMakeLists.txt
cmake
+1
-1
1 addition, 1 deletion
cmake
with
20 additions
and
8 deletions
.pre-commit-config.yaml
+
1
−
1
View file @
34be6c76
...
...
@@ -6,7 +6,7 @@ repos:
hooks
:
-
id
:
cmake-format
-
repo
:
https://github.com/pre-commit/mirrors-clang-format
rev
:
v1
7.0.5
rev
:
v1
8.1.1
hooks
:
-
id
:
clang-format
args
:
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
18
−
6
View file @
34be6c76
#
# Copyright (c) 2019-202
0
CNRS
# Copyright (c) 2019-202
4
CNRS
#
# This file is part of eiquadprog.
#
...
...
@@ -37,11 +37,23 @@ set(PROJECT_CUSTOM_HEADER_EXTENSION "hpp")
# Check if the submodule cmake have been initialized
set
(
JRL_CMAKE_MODULES
"
${
CMAKE_CURRENT_LIST_DIR
}
/cmake"
)
if
(
NOT EXISTS
"
${
CMAKE_SOURCE_DIR
}
/cmake/base.cmake"
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.14.0"
)
if
(
EXISTS
"
${
JRL_CMAKE_MODULES
}
/base.cmake"
)
message
(
STATUS
"JRL cmakemodules found in 'cmake/' git submodule"
)
else
()
find_package
(
jrl-cmakemodules QUIET CONFIG
)
if
(
jrl-cmakemodules_FOUND
)
get_property
(
JRL_CMAKE_MODULES
TARGET jrl-cmakemodules::jrl-cmakemodules
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
)
message
(
STATUS
"JRL cmakemodules found on system at
${
JRL_CMAKE_MODULES
}
"
)
elseif
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.14.0"
)
message
(
FATAL_ERROR
"
\n
Please run the following command first:
\n
git submodule update --init
\n
"
"
\n
Can't find jrl-cmakemodules. Please either:
\n
"
" - use git submodule: 'git submodule update --init'
\n
"
" - or install https://github.com/jrl-umi3218/jrl-cmakemodules
\n
"
" - or upgrade your CMake version to >= 3.14 to allow automatic fetching
\n
"
)
else
()
message
(
STATUS
"JRL cmakemodules not found. Let's fetch it."
)
...
...
@@ -92,8 +104,8 @@ modernize_target_link_libraries(
Eigen3::Eigen
INCLUDE_DIRS
${
EIGEN3_INCLUDE_DIR
}
)
target_include_directories
(
${
PROJECT_NAME
}
INTERFACE $<INSTALL_INTERFACE:
include
>
)
target_include_directories
(
${
PROJECT_NAME
}
INTERFACE $<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>
)
install
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
...
...
This diff is collapsed.
Click to expand it.
cmake
@
3cec2294
Compare
b7a4177f
...
3cec2294
Subproject commit
b7a4177f2694c50dc95e64317f1260c7cfae93a3
Subproject commit
3cec22945319a41a15808c84b17d5425b9e9e4dc
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