代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.13.0)
project(common CXX)
set(CMAKE_CXX_STANDARD 14)
find_package(glog REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(osqp REQUIRED)
find_package(PythonLibs REQUIRED)
add_executable(spile2d_test tcode/osqp_spline2d_solver_test.cc
common/smoothing/affine_constraint.cc
common/smoothing/discrete_points_math.cc
common/smoothing/osqp_spline1d_solver.cc
common/smoothing/osqp_spline2d_solver.cc
common/smoothing/polynomialxd.cc
common/smoothing/spline1d_constraint.cc
common/smoothing/spline1d_kernel_helper.cc
common/smoothing/spline1d_kernel.cc
common/smoothing/spline1d_seg.cc
common/smoothing/spline1d.cc
common/smoothing/spline2d_constraint.cc
common/smoothing/spline2d_kernel.cc
common/smoothing/spline2d_seg
common/smoothing/spline2d.cc
common/utils/math.cc
common/solver/osqp/osqp_interface.cc
)
add_executable(spile1d_test tcode/osqp_spline1d_solver_test.cc
common/smoothing/affine_constraint.cc
common/smoothing/discrete_points_math.cc
common/smoothing/osqp_spline1d_solver.cc
common/smoothing/osqp_spline2d_solver.cc
common/smoothing/polynomialxd.cc
common/smoothing/spline1d_constraint.cc
common/smoothing/spline1d_kernel_helper.cc
common/smoothing/spline1d_kernel.cc
common/smoothing/spline1d_seg.cc
common/smoothing/spline1d.cc
common/smoothing/spline2d_constraint.cc
common/smoothing/spline2d_kernel.cc
common/smoothing/spline2d_seg
common/smoothing/spline2d.cc
common/utils/math.cc
common/solver/osqp/osqp_interface.cc
)
include_directories(SYSTEM ${EIGEN3_INCLUDE_DIR})
include_directories(${CMAKE_SOURCE_DIR})
include_directories(${PYTHON_INCLUDE_DIRS})
target_link_libraries(spile2d_test
${PYTHON_LIBRARIES}
osqp::osqp
glog
)
target_link_libraries(spile1d_test
${PYTHON_LIBRARIES}
osqp::osqp
glog
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。