Skip to content

Commit

Permalink
w2
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Mar 15, 2024
1 parent 0662b42 commit 94b566a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 3 additions & 0 deletions cmake/DARTConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ endfunction()

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})

# TODO: Improve the include mechanism
include(dart_v7Targets)

# Default component: dart
list(APPEND @PROJECT_NAME_UPPERCASE@_FIND_COMPONENTS dart)

Expand Down
6 changes: 3 additions & 3 deletions cmake/dart_v7_defs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ function(dart_library)

install(
TARGETS ${_ARG_NAME}
EXPORT ${_ARG_NAME}Targets
EXPORT dart_${_ARG_NAME}Targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

install(
EXPORT ${_ARG_NAME}Targets
EXPORT dart_${_ARG_NAME}Targets
NAMESPACE DART::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${_ARG_NAME}
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake
)

endfunction()
9 changes: 4 additions & 5 deletions python/dartpy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ if(BUILD_SHARED_LIBS)
)
endif()

# TODO: Fix installing dartpy to site-packages directory
# Install the pybind module to site-packages directory
if(TARGET ${pybind_module})
install(TARGETS ${pybind_module}
LIBRARY DESTINATION "${PYTHON_SITE_PACKAGES}"
)
endif()
# install(TARGETS ${pybind_module}
# LIBRARY DESTINATION "${PYTHON_SITE_PACKAGES}"
# )

list(REMOVE_ITEM dartpy_headers
${CMAKE_CURRENT_LIST_DIR}/eigen_geometry_pybind.h
Expand Down

0 comments on commit 94b566a

Please sign in to comment.