-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cmake): 修复examples component安装路径
- Loading branch information
1 parent
4d27589
commit 61879ec
Showing
3 changed files
with
48 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,42 @@ | ||
add_executable(channel_test_writer channel_test_writer.cc ../proto/examples.pb.cc) | ||
add_executable(channel_test_writer | ||
channel_test_writer.cc ../proto/examples.pb.cc | ||
) | ||
|
||
target_link_libraries(channel_test_writer | ||
${TARGET_NAME} | ||
${TARGET_NAME} | ||
) | ||
|
||
add_executable(channel_prediction_writer | ||
channel_prediction_writer.cc ../proto/examples.pb.cc | ||
) | ||
|
||
add_executable(channel_prediction_writer channel_prediction_writer.cc ../proto/examples.pb.cc) | ||
target_link_libraries(channel_prediction_writer | ||
${TARGET_NAME} | ||
${TARGET_NAME} | ||
) | ||
|
||
add_library(common_component_example SHARED | ||
common_component_example.cc | ||
../proto/examples.pb.cc | ||
) | ||
|
||
add_library(common_component_example SHARED common_component_example.cc ../proto/examples.pb.cc) | ||
target_link_libraries(common_component_example | ||
${TARGET_NAME} | ||
) | ||
set_target_properties(common_component_example PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/") | ||
|
||
set_target_properties(common_component_example PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/cyber/examples/common_component_example/" | ||
) | ||
|
||
|
||
file(COPY common.dag common.launch | ||
DESTINATION ${CMAKE_BINARY_DIR}/share/examples/common_component_example | ||
DESTINATION ${CMAKE_BINARY_DIR}/share/examples/common_component_example | ||
) | ||
|
||
install(FILES common.dag common.launch | ||
DESTINATION share/examples/common_component_example | ||
) | ||
|
||
install(TARGETS common_component_example | ||
LIBRARY DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
) | ||
|
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,26 @@ | ||
|
||
add_library(timer_component_example SHARED | ||
timer_component_example.cc | ||
../proto/examples.pb.cc | ||
) | ||
|
||
target_link_libraries(timer_component_example | ||
${TARGET_NAME} | ||
) | ||
|
||
set_target_properties(timer_component_example PROPERTIES | ||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/cyber/examples/timer_component_example/" | ||
) | ||
|
||
file(COPY timer.dag timer.launch | ||
DESTINATION ${CMAKE_BINARY_DIR}/share/examples/timer_component_example | ||
) | ||
|
||
install(FILES timer.dag timer.launch | ||
DESTINATION share/examples/timer_component_example | ||
) | ||
|
||
install(TARGETS timer_component_example | ||
LIBRARY DESTINATION lib | ||
) | ||
|