Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
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
eigenpy
Commits
6eb5c848
Unverified
Commit
6eb5c848
authored
4 years ago
by
Justin Carpentier
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #197 from jcarpent/devel
Clean CMake
parents
8833b016
bef31221
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake
+1
-1
1 addition, 1 deletion
cmake
python/CMakeLists.txt
+2
-23
2 additions, 23 deletions
python/CMakeLists.txt
with
3 additions
and
24 deletions
cmake
@
e715bf76
Compare
9d6231d5
...
e715bf76
Subproject commit
9d6231d5743f6529bdd053b929a252ad95449162
Subproject commit
e715bf761e97dbcd704adecd03c28d8e195e7811
This diff is collapsed.
Click to expand it.
python/CMakeLists.txt
+
2
−
23
View file @
6eb5c848
#
# Copyright (c) 2014-2019 CNRS
# Copyright (c) 2018-2019 INRIA
# Copyright (c) 2014-2020 CNRS INRIA
#
MACRO
(
SYMLINK_AND_INSTALL_HEADERS HEADERS SUBPATH
)
FOREACH
(
header
${
HEADERS
}
)
GET_FILENAME_COMPONENT
(
headerName
${
header
}
NAME
)
GET_FILENAME_COMPONENT
(
headerPath
${
header
}
PATH
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_COMMAND
}
-E
${
LINK
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
header
}
${${
PROJECT_NAME
}
_BINARY_DIR
}
/include/
${
PROJECT_NAME
}
/
${
SUBPATH
}
/
${
header
}
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
header
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/include/
${
PROJECT_NAME
}
/
${
SUBPATH
}
/
${
headerPath
}
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE
)
ENDFOREACH
(
header
)
ENDMACRO
(
SYMLINK_AND_INSTALL_HEADERS HEADERS SUBPATH
)
# --- LIBRARY --- #
SET
(
PYWRAP
${
PROJECT_NAME
}
_pywrap
)
SET
(
PYWRAP
${
PYWRAP
}
PARENT_SCOPE
)
...
...
@@ -34,10 +19,7 @@ TARGET_LINK_LIBRARIES(${PYWRAP} PUBLIC ${PROJECT_NAME})
IF
(
NOT WIN32
)
TARGET_COMPILE_OPTIONS
(
${
PYWRAP
}
PRIVATE
"-Wno-conversion"
)
ENDIF
()
#IF(BUILD_WITH_COMMIT_VERSION)
# TAG_LIBRARY_VERSION(${PYWRAP})
#ENDIF(BUILD_WITH_COMMIT_VERSION)
IF
(
DEFINED EIGENPY_SITELIB_ROOT AND EIGENPY_SITELIB_ROOT
)
IF
(
EIGENPY_SITELIB_ROOT
)
SET
(
${
PYWRAP
}
_INSTALL_DIR
${
EIGENPY_SITELIB_ROOT
}
/
${
PYTHON_SITELIB
}
/
${
PROJECT_NAME
}
)
ELSE
()
SET
(
${
PYWRAP
}
_INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
/
${
PYTHON_SITELIB
}
/
${
PROJECT_NAME
}
)
...
...
@@ -59,9 +41,6 @@ SET(PYTHON_FILES
)
FOREACH
(
python
${
PYTHON_FILES
}
)
IF
(
NOT WIN32
)
PYTHON_BUILD
(
${
PROJECT_NAME
}
${
python
}
)
ENDIF
()
INSTALL
(
FILES
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/eigenpy/
${
python
}
"
DESTINATION
${${
PYWRAP
}
_INSTALL_DIR
}
)
...
...
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