Make low-can use afb-genskel by default
[apps/agl-service-can-low-level.git] / low-can-binding / CMakeLists.txt
index cd38fca..b2892cc 100644 (file)
@@ -22,8 +22,9 @@ 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
@@ -33,6 +34,7 @@ PROJECT_TARGET_ADD(low-can)
                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
@@ -40,14 +42,15 @@ PROJECT_TARGET_ADD(low-can)
                utils/openxc-utils.cpp
                utils/timer.cpp
                utils/socketcan.cpp
-               utils/socketcan-raw.cpp
+               #utils/socketcan-raw.cpp
                utils/socketcan-bcm.cpp
                utils/config-parser.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 "BINDINGV2"
                LINK_FLAGS ${BINDINGS_LINK_FLAG}
                OUTPUT_NAME ${TARGET_NAME}
        )
@@ -61,7 +64,3 @@ PROJECT_TARGET_ADD(low-can)
                bitfield-c
                ${link_libraries})
 
-       # installation directory
-       INSTALL(TARGETS ${TARGET_NAME}
-               LIBRARY DESTINATION ${BINDINGS_INSTALL_DIR})
-