Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions deep_core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Copyright (c) 2025-present WATonomous. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Copyright (c) 2025-present Polymath Robotics, Inc. All rights reserved
# Proprietary. Any unauthorized copying, distribution, or modification of this software is strictly prohibited.
cmake_minimum_required(VERSION 3.22)
project(deep_core)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
add_link_options(-Wl,-no-undefined)
endif()

find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_lifecycle REQUIRED)

set(include_dir ${CMAKE_CURRENT_SOURCE_DIR}/include)

# deep_core library
set(DEEP_CORE_LIB ${PROJECT_NAME}_lib)
add_library(${DEEP_CORE_LIB} SHARED
src/deep_node_base.cpp
)
target_include_directories(${DEEP_CORE_LIB} PUBLIC
$<BUILD_INTERFACE:${include_dir}>
$<INSTALL_INTERFACE:include>
)
target_link_libraries(${DEEP_CORE_LIB}
PRIVATE
rclcpp::rclcpp
rclcpp_lifecycle::rclcpp_lifecycle
)

install(TARGETS
${DEEP_CORE_LIB}
EXPORT ${PROJECT_NAME}Targets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)

install(EXPORT ${PROJECT_NAME}Targets
NAMESPACE ${PROJECT_NAME}::
DESTINATION share/${PROJECT_NAME}/cmake
)

install(DIRECTORY include/
DESTINATION include
)

if(BUILD_TESTING)
find_package(deep_test REQUIRED)

endif()

ament_export_targets(${PROJECT_NAME}Targets HAS_LIBRARY_TARGET)
Empty file added deep_core/COLCON_IGNORE
Empty file.
126 changes: 0 additions & 126 deletions deep_core/include/deep_core/types/tensor.hpp

This file was deleted.

19 changes: 19 additions & 0 deletions deep_core/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<package format="3">
<name>deep_core</name>
<version>0.1.0</version>
<description>C++ language generic utilities, independent of any other dependencies or frameworks</description>
<maintainer email="hello@watonomous.ca">WATonomous</maintainer>
<license>Apache 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>rclcpp</depend>
<depend>rclcpp_lifecycle</depend>

<test_depend>deep_test</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>
Loading