diff options
-rw-r--r-- | conf.d/cmake/config.cmake | 2 | ||||
-rw-r--r-- | low-can-binding/CMakeLists.txt | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index b1dec8c3..d7d5f43e 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -29,8 +29,6 @@ set(PROJECT_LICENSE "APL2.0") set(PROJECT_LANGUAGES "C;CXX") set(API_NAME "low-can") -set(INSTALL_RPATH "$ORIGIN") - # Where are stored the project configuration files # relative to the root project directory set(PROJECT_CMAKE_CONF_DIR "conf.d") diff --git a/low-can-binding/CMakeLists.txt b/low-can-binding/CMakeLists.txt index cba07bf5..ce66a8c4 100644 --- a/low-can-binding/CMakeLists.txt +++ b/low-can-binding/CMakeLists.txt @@ -63,6 +63,12 @@ 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 @@ -86,6 +92,7 @@ PROJECT_TARGET_ADD(low-can-binding) PREFIX "afb-" LABELS "BINDINGV3" LINK_FLAGS ${BINDINGS_LINK_FLAG} + INSTALL_RPATH "$ORIGIN" OUTPUT_NAME ${TARGET_NAME} ) |