forked from Auterion/px4-simulation-ignition
-
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.
- Loading branch information
1 parent
1ff438f
commit 2f4fc8f
Showing
5 changed files
with
18 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,17 @@ if(NOT ${gz-transport13_VERSION} EQUAL 13.1.0) | |
message(FATAL_ERROR "gz-transport13 must be version 13.1.0. You have ${gz-transport13_VERSION}") | ||
endif () | ||
|
||
find_library(GZ_CUSTOM_MSGS NAMES gz_custom_messages PATHS /usr/local/bin) | ||
if (NOT GZ_CUSTOM_MSGS) | ||
message(FATAL_ERROR "Please install messages library from https://github.com/tiiuae/TASFMessages") | ||
endif () | ||
include(FetchContent) | ||
message(STATUS "Download TASFMessages library") | ||
|
||
FetchContent_Declare( | ||
TASFMessages | ||
GIT_REPOSITORY "[email protected]:tiiuae/TASFMessages.git" | ||
GIT_TAG main | ||
SOURCE_DIR ${CMAKE_SOURCE_DIR}/dependency/TASFMessages | ||
) | ||
FetchContent_Populate(TASFMessages) | ||
add_subdirectory(${tasfmessages_SOURCE_DIR}) | ||
|
||
if(gz-msgs10_FOUND) | ||
set(GZ_MSG_VER 10) | ||
|
@@ -50,6 +57,7 @@ include_directories(${CMAKE_BINARY_DIR}) | |
include_directories( | ||
include | ||
${Boost_INCLUDE_DIR} | ||
${tasfmessages_BINARY_DIR} | ||
# ${MAVLINK_INCLUDE_DIRS} | ||
) | ||
|
||
|
@@ -75,11 +83,11 @@ add_library(collision_plugin SHARED src/harmonic_collision.cpp) | |
set_property(TARGET collision_plugin PROPERTY CXX_STANDARD 17) | ||
target_link_libraries(collision_plugin | ||
PRIVATE gz-sim${GAZEBO_VERSION}::gz-sim${GAZEBO_VERSION} | ||
PRIVATE ${GZ_CUSTOM_MSGS} | ||
PRIVATE gz_custom_messages | ||
) | ||
|
||
add_library(groundtruth_plugin SHARED src/groundtruth_plugin.cpp) | ||
target_link_libraries(groundtruth_plugin | ||
PRIVATE gz-sim${GAZEBO_VERSION}::gz-sim${GAZEBO_VERSION} | ||
PRIVATE ${GZ_CUSTOM_MSGS} | ||
PRIVATE gz_custom_messages | ||
) |
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