aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/CMakeLists.txt
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2020-01-08 10:44:32 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 15:53:58 +0100
commitd82e1b8ecabb9eaa1f7f76ca0e8c97f63719f13a (patch)
treeeee9cd6a0484cb3d0efa611b07e8f52e12d12fa1 /plugins/CMakeLists.txt
parent77a19477d3cb63b5af519853489cc90ead0a111b (diff)
cmake: cleaning and set RPATH for binding
Cleaning and set RPATH to find the low-can library Change-Id: I6e68a61bbeca385433028a716b9ac6d5e7f28769 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'plugins/CMakeLists.txt')
-rwxr-xr-xplugins/CMakeLists.txt72
1 files changed, 23 insertions, 49 deletions
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 426689ef..b87f3244 100755
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -16,54 +16,28 @@
# limitations under the License.
###########################################################################
-#PROJECT_TARGET_ADD(agl-signals)
-
-# # Define targets
-# ADD_LIBRARY(${TARGET_NAME} MODULE ${TARGET_NAME}.cpp)
-
-# # Alsa Plugin properties
-# SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
-# LABELS "PLUGIN"
-# PREFIX ""
-# SUFFIX ".ctlso"
-# OUTPUT_NAME ${TARGET_NAME}
-# )
-#
-# target_include_directories(${TARGET_NAME}
-# PRIVATE "../low-can-binding")
-
-# # Library dependencies (include updates automatically)
-# TARGET_LINK_LIBRARIES(${TARGET_NAME}
-# ini-config
-# openxc-message-format
-# uds-c
-# isotp-c
-# bitfield-c
-# afb-helpers
-# ${link_libraries})
-
PROJECT_TARGET_ADD(agl-signals)
- # Define targets
- ADD_LIBRARY(${TARGET_NAME} MODULE ${TARGET_NAME}.cpp)
-
- # Alsa Plugin properties
- SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
- LABELS "PLUGIN"
- PREFIX ""
- SUFFIX ".ctlso"
- OUTPUT_NAME ${TARGET_NAME}
- )
-
- target_include_directories(${TARGET_NAME}
- PRIVATE "../low-can-binding")
-
- # Library dependencies (include updates automatically)
- TARGET_LINK_LIBRARIES(${TARGET_NAME}
- ini-config
- openxc-message-format
- uds-c
- isotp-c
- bitfield-c
- afb-helpers
- ${link_libraries})
+ # Define targets
+ ADD_LIBRARY(${TARGET_NAME} MODULE ${TARGET_NAME}.cpp)
+
+ # Alsa Plugin properties
+ SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
+ LABELS "PLUGIN"
+ PREFIX ""
+ SUFFIX ".ctlso"
+ OUTPUT_NAME ${TARGET_NAME}
+ )
+
+ target_include_directories(${TARGET_NAME}
+ PRIVATE "../low-can-binding")
+
+ # Library dependencies (include updates automatically)
+ TARGET_LINK_LIBRARIES(${TARGET_NAME}
+ low-can
+ openxc-message-format
+ uds-c
+ isotp-c
+ bitfield-c
+ afb-helpers
+ ${link_libraries})