Added afb-helpers submodule
[apps/agl-service-can-low-level.git] / low-can-binding / CMakeLists.txt
index fd68e6c..c8bac4f 100644 (file)
@@ -22,18 +22,18 @@ PROJECT_TARGET_ADD(low-can)
 
        # Define project Targets
        add_library(${TARGET_NAME} MODULE
-               binding/${TARGET_NAME}-hat.cpp
+               #binding/${TARGET_NAME}-hat.cpp
                binding/${TARGET_NAME}-cb.cpp
                binding/${TARGET_NAME}-socket.cpp
                binding/${TARGET_NAME}-subscription.cpp
                binding/application.cpp
-               binding/application-generated.cpp
                can/can-bus.cpp
                can/can-message-set.cpp
                can/can-message-definition.cpp
                can/can-message.cpp
                can/can-signals.cpp
                can/can-decoder.cpp
+               can/can-encoder.cpp
                diagnostic/diagnostic-message.cpp
                diagnostic/diagnostic-manager.cpp
                diagnostic/active-diagnostic-request.cpp
@@ -43,12 +43,14 @@ PROJECT_TARGET_ADD(low-can)
                utils/socketcan.cpp
                #utils/socketcan-raw.cpp
                utils/socketcan-bcm.cpp
-               utils/config-parser.cpp)
+               utils/config-parser.cpp
+               binding/application-generated.cpp)
 
+       set(OPENAPI_DEF "binding/low-can-apidef" CACHE STRING "name and path to the JSON API definition without extension")
        # Binder exposes a unique public entry point
        SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
                PREFIX "afb-"
-               LABELS "BINDING"
+               LABELS "BINDINGV3"
                LINK_FLAGS ${BINDINGS_LINK_FLAG}
                OUTPUT_NAME ${TARGET_NAME}
        )
@@ -60,9 +62,6 @@ PROJECT_TARGET_ADD(low-can)
                uds-c
                isotp-c
                bitfield-c
+               afb-helpers
                ${link_libraries})
 
-       # installation directory
-       INSTALL(TARGETS ${TARGET_NAME}
-               LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR})
-