remove extra whitespaces
parent
e0ce34833a
commit
5c75a52fa6
|
@ -8,7 +8,7 @@ endif()
|
||||||
# Generate setup.py.
|
# Generate setup.py.
|
||||||
file(READ "${PROJECT_SOURCE_DIR}/README.md" README_CONTENTS)
|
file(READ "${PROJECT_SOURCE_DIR}/README.md" README_CONTENTS)
|
||||||
configure_file(${PROJECT_PYTHON_SOURCE_DIR}/setup.py.in
|
configure_file(${PROJECT_PYTHON_SOURCE_DIR}/setup.py.in
|
||||||
${GTSAM_PYTHON_BUILD_DIRECTORY}/setup.py)
|
${GTSAM_PYTHON_BUILD_DIRECTORY}/setup.py)
|
||||||
|
|
||||||
# Supply MANIFEST.in for older versions of Python
|
# Supply MANIFEST.in for older versions of Python
|
||||||
file(COPY ${PROJECT_PYTHON_SOURCE_DIR}/MANIFEST.in
|
file(COPY ${PROJECT_PYTHON_SOURCE_DIR}/MANIFEST.in
|
||||||
|
@ -23,10 +23,9 @@ include(PybindWrap)
|
||||||
|
|
||||||
# Load the pybind11 code
|
# Load the pybind11 code
|
||||||
|
|
||||||
|
|
||||||
# This is required to avoid an error in modern pybind11 cmake scripts:
|
# This is required to avoid an error in modern pybind11 cmake scripts:
|
||||||
if(POLICY CMP0057)
|
if(POLICY CMP0057)
|
||||||
cmake_policy(SET CMP0057 NEW)
|
cmake_policy(SET CMP0057 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Use bundled pybind11 version
|
# Use bundled pybind11 version
|
||||||
|
@ -200,7 +199,6 @@ if(GTSAM_UNSTABLE_BUILD_PYTHON)
|
||||||
gtsam::gtsfm::KeypointsVector
|
gtsam::gtsfm::KeypointsVector
|
||||||
gtsam::gtsfm::SfmTrack2dVector)
|
gtsam::gtsfm::SfmTrack2dVector)
|
||||||
|
|
||||||
|
|
||||||
pybind_wrap(${GTSAM_PYTHON_UNSTABLE_TARGET} # target
|
pybind_wrap(${GTSAM_PYTHON_UNSTABLE_TARGET} # target
|
||||||
${PROJECT_SOURCE_DIR}/gtsam_unstable/gtsam_unstable.i # interface_header
|
${PROJECT_SOURCE_DIR}/gtsam_unstable/gtsam_unstable.i # interface_header
|
||||||
"gtsam_unstable.cpp" # generated_cpp
|
"gtsam_unstable.cpp" # generated_cpp
|
||||||
|
@ -228,7 +226,7 @@ if(GTSAM_UNSTABLE_BUILD_PYTHON)
|
||||||
|
|
||||||
# Copy all python files to build folder.
|
# Copy all python files to build folder.
|
||||||
copy_directory("${CMAKE_CURRENT_SOURCE_DIR}/gtsam_unstable"
|
copy_directory("${CMAKE_CURRENT_SOURCE_DIR}/gtsam_unstable"
|
||||||
"${GTSAM_UNSTABLE_MODULE_PATH}")
|
"${GTSAM_UNSTABLE_MODULE_PATH}")
|
||||||
|
|
||||||
# Hack to get python test files copied every time they are modified
|
# Hack to get python test files copied every time they are modified
|
||||||
file(GLOB GTSAM_UNSTABLE_PYTHON_TEST_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/gtsam_unstable/" "${CMAKE_CURRENT_SOURCE_DIR}/gtsam_unstable/tests/*.py")
|
file(GLOB GTSAM_UNSTABLE_PYTHON_TEST_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/gtsam_unstable/" "${CMAKE_CURRENT_SOURCE_DIR}/gtsam_unstable/tests/*.py")
|
||||||
|
|
Loading…
Reference in New Issue