X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2FCMakeLists.txt;h=38ac4b3d285963fb106025273849a93a2d7071f3;hb=refs%2Fchanges%2F92%2F23292%2F4;hp=cba07bf52bec4556233457eb575bcb2c7e158434;hpb=04b7efcdd1a8dfdf461c78d083aabee5445e54bd;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/CMakeLists.txt b/low-can-binding/CMakeLists.txt index cba07bf5..38ac4b3d 100644 --- a/low-can-binding/CMakeLists.txt +++ b/low-can-binding/CMakeLists.txt @@ -63,8 +63,13 @@ PROJECT_TARGET_ADD(low-can) add_library(${TARGET_NAME} SHARED ${SOURCES_LIB} ${SOURCES_J1939} ${SOURCES_ISOTP}) + # Binder exposes a unique public entry point + SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES + LABELS "LIBRARY" + IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/lib${TARGET_NAME}.so + ) + TARGET_LINK_LIBRARIES(${TARGET_NAME} - ini-config openxc-message-format uds-c isotp-c @@ -86,13 +91,13 @@ PROJECT_TARGET_ADD(low-can-binding) PREFIX "afb-" LABELS "BINDINGV3" LINK_FLAGS ${BINDINGS_LINK_FLAG} + INSTALL_RPATH "$ORIGIN" OUTPUT_NAME ${TARGET_NAME} ) # Library dependencies (include updates automatically) TARGET_LINK_LIBRARIES(${TARGET_NAME} low-can - ini-config openxc-message-format uds-c isotp-c