Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-dyninv
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
Guilhem Saurel
sot-dyninv
Commits
abd0bc56
Commit
abd0bc56
authored
5 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] add INSTALL_PYTHON_INTERFACE_ONLY option
parent
079a2e98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+5
-3
5 additions, 3 deletions
CMakeLists.txt
src/CMakeLists.txt
+7
-3
7 additions, 3 deletions
src/CMakeLists.txt
with
12 additions
and
6 deletions
CMakeLists.txt
+
5
−
3
View file @
abd0bc56
...
...
@@ -22,9 +22,10 @@ INCLUDE(cmake/lapack.cmake)
INCLUDE
(
cmake/cpack.cmake
)
INCLUDE
(
cmake/python.cmake
)
SET
(
PROJECT_NAMESPACE stack-of-tasks
)
SET
(
PROJECT_NAME sot-dyninv
)
SET
(
PROJECT_DESCRIPTION
"control by inverse dynamics."
)
SET
(
PROJECT_URL
"http://github.com/
stack-of-tasks/sot-dyninv
"
)
SET
(
PROJECT_URL
"http://github.com/
${
PROJECT_NAMESPACE
}
/
${
PROJECT_NAME
}
"
)
SET
(
CUSTOM_HEADER_DIR
"
${
PROJECT_NAME
}
"
)
SET
(
DOXYGEN_USE_MATHJAX YES
)
...
...
@@ -38,6 +39,9 @@ SET(PKG_CONFIG_ADDITIONAL_VARIABLES
plugindir
)
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python bindings"
ON
)
OPTION
(
INSTALL_PYTHON_INTERFACE_ONLY
"Install *ONLY* the python bindings"
OFF
)
SETUP_PROJECT
()
# Search for dependencies.
...
...
@@ -136,7 +140,6 @@ foreach(lib solver-op-space solver-dyn-reduced solver-dyn-red2)
ENDIF
(
WIN32
)
endforeach
(
lib
)
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python bindings"
ON
)
IF
(
BUILD_PYTHON_INTERFACE
)
FINDPYTHON
()
FIND_NUMPY
()
...
...
@@ -150,4 +153,3 @@ ADD_SUBDIRECTORY(python)
ADD_SUBDIRECTORY
(
unitTesting
)
SETUP_PROJECT_FINALIZE
()
SETUP_PROJECT_CPACK
()
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
7
−
3
View file @
abd0bc56
...
...
@@ -30,8 +30,10 @@ FOREACH(header ${headers})
ELSE
(
WIN32
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
${
src_path
}
${
bin_path
}
)
ENDIF
(
WIN32
)
install
(
FILES
${
src_path
}
DESTINATION
${
install_path
}
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
)
IF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
install
(
FILES
${
src_path
}
DESTINATION
${
install_path
}
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
)
ENDIF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
ENDFOREACH
(
header
)
INCLUDE_DIRECTORIES
(
${
CMAKE_BINARY_DIR
}
/include
)
...
...
@@ -56,7 +58,9 @@ FOREACH(lib ${libs})
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
dynamic-graph
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
soth
)
INSTALL
(
TARGETS
${
lib
}
DESTINATION
${
DYNAMIC_GRAPH_PLUGINDIR
}
)
IF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
INSTALL
(
TARGETS
${
lib
}
DESTINATION
${
DYNAMIC_GRAPH_PLUGINDIR
}
)
ENDIF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
# build python submodule
IF
(
BUILD_PYTHON_INTERFACE
)
STRING
(
REPLACE - _ PYTHON_LIBRARY_NAME
${
lib
}
)
...
...
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