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
d43eb96f
Verified
Commit
d43eb96f
authored
Oct 16, 2019
by
Justin Carpentier
Browse files
cmake: update to comply with new policy
parent
6a68c8c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d43eb96f
...
...
@@ -5,25 +5,26 @@
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.6
)
SET
(
PROJECT_NAME eigenpy
)
SET
(
PROJECT_DESCRIPTION
"Bindings between Numpy and Eigen using Boost.Python"
)
SET
(
PROJECT_URL
"http://github.com/stack-of-tasks/eigenpy"
)
# Check if the submodule cmake have been initialized
IF
(
NOT EXISTS
"
${
PROJECT
_SOURCE_DIR
}
/cmake/base.cmake"
)
IF
(
NOT EXISTS
"
${
CMAKE
_SOURCE_DIR
}
/cmake/base.cmake"
)
MESSAGE
(
FATAL_ERROR
"
\n
Please run the following command first:
\n
git submodule update --init
\n
"
)
ENDIF
()
# Disable -Werror on Unix for now.
SET
(
CXX_DISABLE_WERROR True
)
SET
(
CMAKE_VERBOSE_MAKEFILE True
)
INCLUDE
(
cmake/base.cmake
)
PROJECT
(
${
PROJECT_NAME
}
CXX
)
INCLUDE
(
cmake/boost.cmake
)
INCLUDE
(
cmake/python.cmake
)
INCLUDE
(
cmake/ide.cmake
)
SET
(
PROJECT_NAME eigenpy
)
SET
(
PROJECT_DESCRIPTION
"Bindings between Numpy and Eigen using Boost.Python"
)
SET
(
PROJECT_URL
"http://github.com/stack-of-tasks/eigenpy"
)
# Disable -Werror on Unix for now.
SET
(
CXX_DISABLE_WERROR True
)
SET
(
CMAKE_VERBOSE_MAKEFILE True
)
SETUP_PROJECT
()
STRING
(
REPLACE
"-pedantic"
""
CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
)
IF
(
APPLE
)
...
...
@@ -162,5 +163,3 @@ PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
PKG_CONFIG_APPEND_CFLAGS
(
"-I
${
PYTHON_INCLUDE_DIRS
}
"
)
PKG_CONFIG_APPEND_CFLAGS
(
"-I
${
NUMPY_INCLUDE_DIRS
}
"
)
PKG_CONFIG_APPEND_BOOST_LIBS
(
${
BOOST_COMPONENTS
}
)
SETUP_PROJECT_FINALIZE
()
Write
Preview
Supports
Markdown
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