-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from robotology/refactor/includes
Remove relative includes by using `target_include_directories` and `target_link_libraries`
- Loading branch information
Showing
39 changed files
with
267 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
|
||
add_subdirectory(singleton-basestate) | ||
add_subdirectory(singleton) | ||
|
||
add_library(gz-sim-yarp-basestate-system SHARED BaseState.cc BaseStateDriver.cpp) | ||
|
||
target_include_directories(gz-sim-yarp-basestate-system | ||
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>") | ||
|
||
target_compile_features(gz-sim-yarp-basestate-system PRIVATE cxx_std_17) | ||
|
||
target_link_libraries(gz-sim-yarp-basestate-system | ||
PRIVATE gz-plugin${GZ_PLUGIN_VER}::gz-plugin${GZ_PLUGIN_VER} | ||
PRIVATE gz-sim${GZ_SIM_VER}::gz-sim${GZ_SIM_VER} | ||
PRIVATE | ||
${YARP_LIBRARIES} | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_init | ||
gz-sim-yarp-handler | ||
gz-sim-yarp-handler-basestate) | ||
gz-sim-yarp-basestate-singleton) | ||
|
||
# Add install target | ||
install(TARGETS gz-sim-yarp-basestate-system) |
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
...leton-basestate/BaseStateDataSingleton.cc → ...state/singleton/BaseStateDataSingleton.cc
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
4 changes: 3 additions & 1 deletion
4
...leton-basestate/BaseStateDataSingleton.hh → ...state/singleton/BaseStateDataSingleton.hh
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,17 @@ | ||
|
||
add_library(gz-sim-yarp-basestate-singleton SHARED BaseStateDataSingleton.hh BaseStateDataSingleton.cc) | ||
|
||
target_include_directories(gz-sim-yarp-basestate-singleton | ||
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>") | ||
|
||
target_compile_features(gz-sim-yarp-basestate-singleton PRIVATE cxx_std_17) | ||
|
||
target_link_libraries(gz-sim-yarp-basestate-singleton | ||
PRIVATE gz-plugin${GZ_PLUGIN_VER}::gz-plugin${GZ_PLUGIN_VER} | ||
PRIVATE gz-sim${GZ_SIM_VER}::gz-sim${GZ_SIM_VER} | ||
PRIVATE | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_init) | ||
|
||
install(TARGETS gz-sim-yarp-basestate-singleton) |
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,19 +1,20 @@ | ||
project(camera) | ||
|
||
add_subdirectory(singleton-camera) | ||
add_subdirectory(singleton) | ||
|
||
add_library(gz-sim-yarp-camera-system SHARED Camera.cc CameraDriver.cpp) | ||
|
||
target_include_directories(gz-sim-yarp-camera-system PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>") | ||
|
||
target_compile_features(gz-sim-yarp-camera-system PRIVATE cxx_std_17) | ||
|
||
target_link_libraries(gz-sim-yarp-camera-system | ||
PRIVATE gz-plugin${GZ_PLUGIN_VER}::gz-plugin${GZ_PLUGIN_VER} | ||
PRIVATE gz-sim${GZ_SIM_VER}::gz-sim${GZ_SIM_VER} | ||
PRIVATE | ||
${YARP_LIBRARIES} | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_init | ||
gz-sim-yarp-handler | ||
gz-sim-yarp-handler-camera) | ||
gz-sim-yarp-camera-singleton) | ||
|
||
# Add install target | ||
install(TARGETS gz-sim-yarp-camera-system) |
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 was deleted.
Oops, something went wrong.
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,16 @@ | ||
add_library(gz-sim-yarp-camera-singleton SHARED CameraDataSingleton.hh CameraDataSingleton.cc) | ||
|
||
target_include_directories(gz-sim-yarp-camera-singleton PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>") | ||
|
||
target_compile_features(gz-sim-yarp-camera-singleton PRIVATE cxx_std_17) | ||
|
||
target_link_libraries(gz-sim-yarp-camera-singleton | ||
PRIVATE gz-plugin${GZ_PLUGIN_VER}::gz-plugin${GZ_PLUGIN_VER} | ||
PRIVATE gz-sim${GZ_SIM_VER}::gz-sim${GZ_SIM_VER} | ||
PRIVATE | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_init) | ||
|
||
# Add install target | ||
install(TARGETS gz-sim-yarp-camera-singleton) |
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
project(forcetorque) | ||
|
||
add_subdirectory(singleton-forcetorque) | ||
add_subdirectory(singleton) | ||
|
||
add_library(gz-sim-yarp-forcetorque-system SHARED ForceTorque.cc ForceTorqueDriver.cpp) | ||
|
||
target_include_directories(gz-sim-yarp-forcetorque-system | ||
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>") | ||
|
||
target_compile_features(gz-sim-yarp-forcetorque-system PRIVATE cxx_std_17) | ||
|
||
target_link_libraries(gz-sim-yarp-forcetorque-system | ||
PRIVATE gz-plugin${GZ_PLUGIN_VER}::gz-plugin${GZ_PLUGIN_VER} | ||
PRIVATE gz-sim${GZ_SIM_VER}::gz-sim${GZ_SIM_VER} | ||
PRIVATE | ||
${YARP_LIBRARIES} | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_init | ||
gz-sim-yarp-handler | ||
gz-sim-yarp-handler-forcetorque) | ||
gz-sim-yarp-forcetorque-singleton) | ||
|
||
# Add install target | ||
install(TARGETS gz-sim-yarp-forcetorque-system) |
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
Oops, something went wrong.