Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
68bf0fd6
Commit
68bf0fd6
authored
Nov 07, 2014
by
Nicolas Mansard
Committed by
nmansard
Nov 07, 2014
Browse files
Integrated Justin's modif in CMake.
parent
4056bbcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
68bf0fd6
...
...
@@ -30,7 +30,6 @@ SET(BOOST_COMPONENTS python)
SEARCH_FOR_BOOST
()
set
(
Python_ADDITIONAL_VERSIONS 2.7
)
FINDPYTHON
()
INCLUDE_DIRECTORIES
(
${
PYTHON_INCLUDE_DIRS
}
)
# ----------------------------------------------------
# --- INCLUDE ----------------------------------------
...
...
@@ -67,17 +66,20 @@ ENDFOREACH(header)
# ----------------------------------------------------
# --- TARGETS ----------------------------------------
# ----------------------------------------------------
INCLUDE_DIRECTORIES
(
${
PYTHON_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
Boost_INCLUDE_DIRS
}
)
ADD_LIBRARY
(
eigenpy SHARED
SET
(
eigenpy_SOURCES
src/exception.cpp
src/eigenpy.cpp
src/details.cpp
src/angle-axis.cpp
src/quaternion.cpp
)
TARGET_LINK_LIBRARIES
(
eigenpy
${
Boost_LIBRARIES
}
)
INSTALL
(
TARGETS eigenpy DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/lib
)
ADD_LIBRARY
(
eigenpy SHARED
${
eigenpy_SOURCES
}
)
TARGET_LINK_LIBRARIES
(
eigenpy
${
Boost_LIBRARIES
}
${
PYTHON_LIBRARIES
}
)
INSTALL
(
TARGETS eigenpy DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/lib
)
# ----------------------------------------------------
# --- UNIT TEST --------------------------------------
...
...
@@ -92,7 +94,10 @@ SET_TARGET_PROPERTIES(geometry PROPERTIES PREFIX "")
PKG_CONFIG_APPEND_CFLAGS
(
${
_Eigen_CFLAGS
}
)
PKG_CONFIG_APPEND_CFLAGS
(
"-I
${
PYTHON_INCLUDE_DIRS
}
"
)
PKG_CONFIG_APPEND_LIBS_RAW
(
${
Boost_LIBRARIES
}
)
#PKG_CONFIG_APPEND_LIBS_RAW(${Boost_LIBRARIES})
PKG_CONFIG_APPEND_LIBS
(
"boost_python"
)
PKG_CONFIG_APPEND_LIBS_RAW
(
${
PYTHON_LIBRARIES
}
)
PKG_CONFIG_APPEND_LIBS
(
${
PROJECT_NAME
}
)
SETUP_PROJECT_FINALIZE
()
SETUP_PROJECT_CPACK
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment