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
54850d40
Commit
54850d40
authored
1 year ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
fetch submodule
parent
d835aedf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+21
-2
21 additions, 2 deletions
CMakeLists.txt
with
21 additions
and
2 deletions
CMakeLists.txt
+
21
−
2
View file @
54850d40
...
@@ -35,9 +35,28 @@ set(CXX_DISABLE_WERROR TRUE)
...
@@ -35,9 +35,28 @@ set(CXX_DISABLE_WERROR TRUE)
set
(
CMAKE_VERBOSE_MAKEFILE TRUE
)
set
(
CMAKE_VERBOSE_MAKEFILE TRUE
)
set
(
PROJECT_CUSTOM_HEADER_EXTENSION
"hpp"
)
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"
)
message
(
FATAL_ERROR
"
\n
Please run the following command first:
\n
git submodule update --init
\n
"
)
else
()
message
(
STATUS
"JRL cmakemodules not found. Let's fetch it."
)
include
(
FetchContent
)
FetchContent_Declare
(
"jrl-cmakemodules"
GIT_REPOSITORY
"https://github.com/jrl-umi3218/jrl-cmakemodules.git"
)
FetchContent_MakeAvailable
(
"jrl-cmakemodules"
)
FetchContent_GetProperties
(
"jrl-cmakemodules"
SOURCE_DIR JRL_CMAKE_MODULES
)
endif
()
endif
()
# JRL-cmakemodule setup
# JRL-cmakemodule setup
include
(
cmake
/base.cmake
)
include
(
"
${
JRL_CMAKE_MODULES
}
/base.cmake
"
)
include
(
cmake
/boost.cmake
)
include
(
"
${
JRL_CMAKE_MODULES
}
/boost.cmake
"
)
# Project definition
# Project definition
compute_project_args
(
PROJECT_ARGS LANGUAGES CXX
)
compute_project_args
(
PROJECT_ARGS LANGUAGES CXX
)
...
...
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