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
Stack Of Tasks
eigenpy
Commits
e6ce0a25
Commit
e6ce0a25
authored
May 01, 2018
by
Olivier Stasse
Browse files
[cmake] Modifies main CMakeLists.txt to allow 3.5 python if available.
parent
44aa2fde
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
e6ce0a25
...
...
@@ -52,25 +52,40 @@ ELSE(WIN32)
SET
(
LINK create_symlink
)
ENDIF
(
WIN32
)
# ----------------------------------------------------
# --- OPTIONS ---------------------------------------
# ----------------------------------------------------
OPTION
(
BUILD_UNIT_TESTS
"Build the unitary tests"
ON
)
SET
(
Python_ADDITIONAL_VERSIONS 3.5
)
FINDPYTHON
()
INCLUDE_DIRECTORIES
(
SYSTEM
${
PYTHON_INCLUDE_DIRS
}
)
FIND_NUMPY
()
INCLUDE_DIRECTORIES
(
SYSTEM
${
NUMPY_INCLUDE_DIRS
}
)
# ----------------------------------------------------
# --- DEPENDANCIES -----------------------------------
# ----------------------------------------------------
ADD_REQUIRED_DEPENDENCY
(
"eigen3 >= 3.0.5"
)
SET
(
BOOST_COMPONENTS python
)
if
(
${
PYTHON_VERSION_MAJOR
}
EQUAL 3
)
if
(
UNIX
)
set
(
BOOST_COMPONENTS python-py35
)
else
()
set
(
BOOST_COMPONENTS python3
)
endif
()
else
()
SET
(
BOOST_COMPONENTS python
)
endif
()
SEARCH_FOR_BOOST
()
# Add Boost path to include directories.
INCLUDE_DIRECTORIES
(
SYSTEM
${
Boost_INCLUDE_DIRS
}
)
FINDPYTHON
(
2.7 EXACT REQUIRED
)
INCLUDE_DIRECTORIES
(
SYSTEM
${
PYTHON_INCLUDE_DIRS
}
)
FIND_NUMPY
()
INCLUDE_DIRECTORIES
(
SYSTEM
${
NUMPY_INCLUDE_DIRS
}
)
#FINDPYTHON(2.7 EXACT REQUIRED)
# ----------------------------------------------------
# --- INCLUDE ----------------------------------------
...
...
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