hiep update

This commit is contained in:
2025-12-30 10:41:57 +07:00
parent 795c70cb63
commit b19cec9f4d
164 changed files with 57 additions and 7606 deletions

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(voxel_grid)
project(robot_voxel_grid)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -19,17 +19,17 @@ include_directories(
)
# Library
add_library(voxel_grid SHARED src/voxel_grid.cpp)
add_library(robot_voxel_grid SHARED src/voxel_grid.cpp)
target_include_directories(voxel_grid
target_include_directories(robot_voxel_grid
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}>
)
# Install targets
install(TARGETS voxel_grid
EXPORT voxel_gridTargets
install(TARGETS robot_voxel_grid
EXPORT robot_voxel_gridTargets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
@@ -41,8 +41,8 @@ install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION include/${PROJECT_NAME}
)
install(EXPORT voxel_gridTargets
DESTINATION lib/cmake/voxel_grid)
install(EXPORT robot_voxel_gridTargets
DESTINATION lib/cmake/robot_voxel_grid)
# Testing
@@ -55,13 +55,13 @@ if(GTest_FOUND OR GTEST_FOUND)
find_package(Threads REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})
add_executable(voxel_grid_tests test/voxel_grid_tests.cpp)
target_link_libraries(voxel_grid_tests
voxel_grid
add_executable(robot_voxel_grid_tests test/voxel_grid_tests.cpp)
target_link_libraries(robot_voxel_grid_tests
robot_voxel_grid
${GTEST_LIBRARIES}
Threads::Threads
)
add_test(NAME voxel_grid_tests COMMAND voxel_grid_tests)
add_test(NAME robot_voxel_grid_tests COMMAND robot_voxel_grid_tests)
else()
message(STATUS "Google Test not found. Tests will not be built.")
endif()