Skip to content

Commit

Permalink
Merge pull request #7 from Robotic-Decision-Making-Lab/bug-devcontainer
Browse files Browse the repository at this point in the history
Revert changes to CMakeLists file to support backwards compatibility
  • Loading branch information
evan-palmer authored Sep 23, 2024
2 parents 7e8010f + f03bb68 commit ab0d8d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "ROS 2 NVIDIA Dev Container",
"name": "Dev Container",
"dockerFile": "Dockerfile",
"context": "../",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/ubuntu/ws_ros/src/auv_controllers,type=bind",
"workspaceFolder": "/home/ubuntu/ws_ros/src/auv_controllers",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/ubuntu/ws_ros/src/hydrodynamics,type=bind",
"workspaceFolder": "/home/ubuntu/ws_ros/src/hydrodynamics",
"remoteUser": "ubuntu",
"customizations": {
"vscode": {
Expand Down
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,26 @@ add_library(hydrodynamics SHARED)
target_sources(hydrodynamics
PRIVATE
src/hydrodynamics.cpp
)
target_include_directories(hydrodynamics
PUBLIC
FILE_SET HEADERS
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include
FILES
${CMAKE_CURRENT_SOURCE_DIR}/include/hydrodynamics/hydrodynamics.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/hydrodynamics/eigen.hpp
$<INSTALL_INTERFACE:include/hydrodynamics>
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
)

target_compile_features(hydrodynamics PUBLIC cxx_std_20)
target_link_libraries(hydrodynamics Eigen3::Eigen)

install(
DIRECTORY include/
DESTINATION include/hydrodynamics
)

install(
TARGETS hydrodynamics
EXPORT export_hydrodynamics
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
FILE_SET HEADERS
)

if(BUILD_TESTING)
Expand Down

0 comments on commit ab0d8d1

Please sign in to comment.