Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
eigenpy
Commits
cdea5a84
Unverified
Commit
cdea5a84
authored
Nov 06, 2019
by
Justin Carpentier
Committed by
GitHub
Nov 06, 2019
Browse files
Merge pull request #101 from wxmerkt/wxm-add-cmake
Add CMake config using pkg-config internally
parents
42b47bff
7854c0fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
cdea5a84
...
...
@@ -65,7 +65,7 @@ FIND_NUMPY()
INCLUDE_DIRECTORIES
(
SYSTEM
${
NUMPY_INCLUDE_DIRS
}
)
# ----------------------------------------------------
# --- DEPEND
A
NCIES -----------------------------------
# --- DEPEND
E
NCIES -----------------------------------
# ----------------------------------------------------
ADD_REQUIRED_DEPENDENCY
(
"eigen3 >= 3.0.5"
)
...
...
@@ -140,6 +140,9 @@ TARGET_COMPILE_OPTIONS(${PROJECT_NAME} PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-bigobj
TARGET_LINK_BOOST_PYTHON
(
${
PROJECT_NAME
}
)
PKG_CONFIG_USE_DEPENDENCY
(
${
PROJECT_NAME
}
eigen3
)
INSTALL
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
PUBLIC_HEADER
INCLUDES DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/include
LIBRARY DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/lib
ARCHIVE DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/lib
RUNTIME DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/bin
)
...
...
@@ -150,10 +153,17 @@ ADD_SOURCE_GROUP(${PROJECT_NAME}_SOURCES)
INCLUDE
(
GenerateExportHeader
)
GENERATE_EXPORT_HEADER
(
${
PROJECT_NAME
}
EXPORT_FILE_NAME eigenpy/
${
PROJECT_NAME
}
_export.h
)
TARGET_INCLUDE_DIRECTORIES
(
${
PROJECT_NAME
}
INTERFACE
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_BINARY_DIR
}
>"
)
SET
(
PUBLIC_HEADER
${${
PROJECT_NAME
}
_HEADERS
}
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/eigenpy/
${
PROJECT_NAME
}
_export.h
DESTINATION include/eigenpy
)
# This is a temporary work-around to fix MoveIt until jrl-cmakemodules
# can correctly create non-target CMake configs
install
(
FILES eigenpyConfig.cmake DESTINATION share/eigenpy/cmake
)
install
(
FILES package.xml DESTINATION share/eigenpy
)
# ----------------------------------------------------
# --- PYTHON LIBRARY ---------------------------------
# ----------------------------------------------------
...
...
cmake
@
046c3be5
Compare
9b9f18fc
...
046c3be5
Subproject commit
9b9f18fc79e2b4e85a95ed8080b9c1d2eea3db2c
Subproject commit
046c3be5553c4ea340eb672d0289627f0c07b1a4
eigenpyConfig.cmake
0 → 100644
View file @
cdea5a84
cmake_minimum_required
(
VERSION 2.8.3
)
message
(
STATUS
"Loading eigenpy from PkgConfig"
)
find_package
(
PkgConfig
)
pkg_check_modules
(
eigenpy REQUIRED eigenpy
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment