From 4e6007c395da9a65a4492e1c45d305368761afcc Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 7 Jan 2020 18:21:33 +0100 Subject: plugins: Conditionnal building of the j1939 plugin Bug-AGL: SPEC-2988 Change-Id: Idf77aa32ca4fd44163d93d0515f21d51f1d7abd7 Signed-off-by: Romain Forlot --- plugins/CMakeLists.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'plugins/CMakeLists.txt') diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 6d0bc0bf..631c68c1 100755 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -41,3 +41,32 @@ PROJECT_TARGET_ADD(agl-vcar-signals) bitfield-c afb-helpers ${link_libraries}) + +if(WITH_FEATURE_J1939) +PROJECT_TARGET_ADD(j1939-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} + low-can + ini-config + openxc-message-format + uds-c + isotp-c + bitfield-c + afb-helpers + ${link_libraries}) +endif() -- cgit 1.2.3-korg