Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tsid
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
tsid
Commits
3549bd57
Unverified
Commit
3549bd57
authored
1 year ago
by
Guilhem Saurel
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #227 from nim65s/cmake
Update CMake
parents
c4aee8f4
b12c63c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#37298
passed with warnings
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+18
-5
18 additions, 5 deletions
CMakeLists.txt
cmake
+1
-1
1 addition, 1 deletion
cmake
with
19 additions
and
6 deletions
CMakeLists.txt
+
18
−
5
View file @
3549bd57
...
...
@@ -52,13 +52,25 @@ set(CXX_DISABLE_WERROR TRUE)
set
(
DOXYGEN_USE_MATHJAX YES
)
set
(
CMAKE_VERBOSE_MAKEFILE TRUE
)
#
JRL-cmakemodule setup
#
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."
)
...
...
@@ -318,7 +330,8 @@ add_source_group(${PROJECT_NAME}_SOURCES)
add_library
(
${
PROJECT_NAME
}
SHARED
${${
PROJECT_NAME
}
_SOURCES
}
${${
PROJECT_NAME
}
_HEADERS
}
)
target_include_directories
(
${
PROJECT_NAME
}
PUBLIC $<INSTALL_INTERFACE:include>
)
target_include_directories
(
${
PROJECT_NAME
}
PUBLIC $<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>
)
target_link_libraries
(
${
PROJECT_NAME
}
PUBLIC pinocchio::pinocchio
eiquadprog::eiquadprog
)
...
...
This diff is collapsed.
Click to expand it.
cmake
@
3cec2294
Compare
17cbc7f7
...
3cec2294
Subproject commit
17cbc7f73afa4471ecf320d9ec8a2b07c4494f3a
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