Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-tools
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
sot-tools
Commits
6539048b
Commit
6539048b
authored
5 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] use exports
parent
356088ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+7
-10
7 additions, 10 deletions
CMakeLists.txt
cmake
+1
-1
1 addition, 1 deletion
cmake
src/CMakeLists.txt
+9
-10
9 additions, 10 deletions
src/CMakeLists.txt
with
17 additions
and
21 deletions
CMakeLists.txt
+
7
−
10
View file @
6539048b
# Copyright 2012, CNRS
# Author: Florent Lamiraux
# Copyright 2012,
2020
CNRS
# Author: Florent Lamiraux
, Guilhem Saurel
#
CMAKE_MINIMUM_REQUIRED
(
VERSION
2.8
)
CMAKE_MINIMUM_REQUIRED
(
VERSION
3.1
)
SET
(
PROJECT_NAMESPACE stack-of-tasks
)
SET
(
PROJECT_NAME sot-tools
)
...
...
@@ -24,23 +24,20 @@ OPTION(SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON
)
C
MAKE_POLICY
(
SET CMP0048 OLD
)
PROJECT
(
${
PROJECT_NAME
}
CXX
)
C
OMPUTE_PROJECT_ARGS
(
PROJECT_ARGS LANGUAGES CXX
)
PROJECT
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
# Add dependency to libsot-tools.so library in pkg-config file.
PKG_CONFIG_APPEND_LIBS
(
"sot-tools"
)
# Trigger dependency to dynamic-graph-python
ADD_REQUIRED_DEPENDENCY
(
"sot-core >= 3.0"
)
# Search for dependencies.
SEARCH_FOR_EIGEN
()
ADD_PROJECT_DEPENDENCY
(
sot-core 4.8.1 REQUIRED PKG_CONFIG_REQUIRES
"sot-core >= 4.8.1"
)
IF
(
BUILD_PYTHON_INTERFACE
)
FINDPYTHON
()
FIND_NUMPY
()
INCLUDE_DIRECTORIES
(
${
PYTHON_INCLUDE_DIRS
}
)
ADD_
REQUIRED
_DEPENDENCY
(
"dynamic-graph-python"
)
ADD_
PROJECT
_DEPENDENCY
(
dynamic-graph-python REQUIRED PKG_CONFIG_REQUIRES
"dynamic-graph-python"
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
ADD_SUBDIRECTORY
(
src
)
This diff is collapsed.
Click to expand it.
cmake
@
4514454f
Compare
63efaecd
...
4514454f
Subproject commit
63efaecd7c1fa3f9c190b5365561c38ea33f323
6
Subproject commit
4514454f5f9462047b5c29f61b6c3e0db731c41
6
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
9
−
10
View file @
6539048b
...
...
@@ -3,9 +3,9 @@
# Author: Florent Lamiraux
#
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
cubic-interpolation.cc
cubic-interpolation.hh
#kinematic-planner.cc
...
...
@@ -19,23 +19,22 @@ ADD_LIBRARY (${LIBRARY_NAME} SHARED
simpleseqplay.hh
)
PKG_CONFIG_USE_DEPENDENCY
(
${
LIBRARY_NAME
}
sot-core
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
sot-core::
sot-core
)
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES
INSTALL_RPATH
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_LIBDIR
}
)
IF
(
SUFFIX_SO_VERSION
)
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES
SOVERSION
${
PROJECT_VERSION
}
)
ENDIF
()
IF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
DESTINATION lib
)
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
DESTINATION lib
)
ENDIF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
IF
(
BUILD_PYTHON_INTERFACE
)
DYNAMIC_GRAPH_PYTHON_MODULE
(
"sot/tools"
${
LIBRARY_NAME
}
wrap
)
DYNAMIC_GRAPH_PYTHON_MODULE
(
"sot/tools"
${
LIBRARY_NAME
}
wrap
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/tools/se3.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/tools/quaternion.py
...
...
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