-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added header-only include location correctly
- Loading branch information
Showing
9 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(common) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
|
||
add_library(${PROJECT_NAME} INTERFACE) | ||
target_include_directories( | ||
${PROJECT_NAME} | ||
INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" | ||
"$<INSTALL_INTERFACE:include>") | ||
|
||
install( | ||
TARGETS ${PROJECT_NAME} | ||
EXPORT "export_${PROJECT_NAME}" | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
RUNTIME DESTINATION bin | ||
INCLUDES | ||
DESTINATION include) | ||
|
||
install(DIRECTORY include/ DESTINATION include/${PROJECT_NAME}) | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_cmake_gtest REQUIRED) | ||
add_subdirectory("tests") | ||
endif() | ||
|
||
ament_export_targets("export_${PROJECT_NAME}") | ||
ament_package() |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
packages/lock_free_queue/package.xml → packages/common/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>lock_free_queue</name> | ||
<name>common</name> | ||
<version>0.0.0</version> | ||
<description>lock_free_queue</description> | ||
<description>common</description> | ||
<license>MIT</license> | ||
<maintainer email="[email protected]">Denis Bakin</maintainer> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ament_add_gtest(queue_test src/test.cpp) | ||
target_include_directories( | ||
queue_test PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>") | ||
target_link_libraries(queue_test ${PROJECT_NAME}) |
File renamed without changes.
This file was deleted.
Oops, something went wrong.