mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Minor change on CMakeList Test
This commit is contained in:
parent
64fad1f7c9
commit
8f6e58d17c
@ -62,12 +62,15 @@ endif()
|
|||||||
|
|
||||||
## Uncomment for example
|
## Uncomment for example
|
||||||
add_executable(serial_example examples/serial_example.cc)
|
add_executable(serial_example examples/serial_example.cc)
|
||||||
#ament_target_dependencies(serial_example ${PROJECT_NAME})
|
|
||||||
target_link_libraries(serial_example ${PROJECT_NAME})
|
target_link_libraries(serial_example ${PROJECT_NAME})
|
||||||
|
|
||||||
|
|
||||||
## Include headers
|
## Include headers
|
||||||
include_directories(include)
|
target_include_directories(${PROJECT_NAME}
|
||||||
|
PUBLIC
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
|
$<INSTALL_INTERFACE:include>)
|
||||||
|
#include_directories(include)
|
||||||
|
|
||||||
## Install executable
|
## Install executable
|
||||||
install(TARGETS ${PROJECT_NAME}
|
install(TARGETS ${PROJECT_NAME}
|
||||||
@ -86,13 +89,12 @@ install(TARGETS serial_example
|
|||||||
)
|
)
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
#if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
# add_subdirectory(tests)
|
find_package(ament_lint_auto REQUIRED)
|
||||||
#endif()
|
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME}
|
#add_subdirectory(tests)
|
||||||
PUBLIC
|
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
ament_lint_auto_find_test_dependencies()
|
||||||
$<INSTALL_INTERFACE:include>)
|
endif()
|
||||||
|
|
||||||
ament_package()
|
ament_package()
|
||||||
Loading…
x
Reference in New Issue
Block a user