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
hpp-fcl
Commits
a17be7ee
Unverified
Commit
a17be7ee
authored
Jan 22, 2020
by
Joseph Mirabel
Committed by
GitHub
Jan 22, 2020
Browse files
Merge pull request #121 from gabrielebndn/topic/python
Default BUILD_PYTHON_INTERFACE to ON
parents
b0a56570
25232546
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a17be7ee
...
...
@@ -63,13 +63,17 @@ include(cmake/ide.cmake)
# If needed, fix CMake policy for APPLE systems
APPLY_DEFAULT_APPLE_CONFIGURATION
()
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python bindings"
O
FF
)
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python bindings"
O
N
)
COMPUTE_PROJECT_ARGS
(
PROJECT_ARGS LANGUAGES CXX
)
PROJECT
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
add_required_dependency
(
"eigen3 >= 3.0.0"
)
if
(
BUILD_PYTHON_INTERFACE
)
ADD_REQUIRED_DEPENDENCY
(
"eigenpy >= 1.2"
)
endif
()
# Add a cache variable to allow not compiling and running tests
set
(
RUN_TESTS TRUE CACHE BOOL
"compile and run unit tests"
)
...
...
python/CMakeLists.txt
View file @
a17be7ee
...
...
@@ -32,8 +32,6 @@
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
ADD_REQUIRED_DEPENDENCY
(
"eigenpy >= 1.2"
)
ADD_CUSTOM_TARGET
(
python
)
SET_TARGET_PROPERTIES
(
python PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD True
)
...
...
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