-
Notifications
You must be signed in to change notification settings - Fork 20
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
c893aa7
commit c582b49
Showing
1 changed file
with
2 additions
and
2 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
project(rsl-install-test CXX) | ||
|
||
add_executable(test-rsl-install install.cpp) | ||
|
||
if(PROJECT_IS_TOP_LEVEL) | ||
# Test consumption via find_package interface and ament_target_dependencies | ||
find_package(ament_cmake_ros REQUIRED) | ||
find_package(rsl 1.1.0 EXACT REQUIRED) | ||
|
||
add_executable(test-rsl-install install.cpp) | ||
ament_target_dependencies(test-rsl-install rsl) | ||
else() | ||
# Test consumption via in-tree build | ||
add_executable(test-rsl-install install.cpp) | ||
target_link_libraries(test-rsl-install PRIVATE rsl::rsl) | ||
endif() |