From 20a1610830d9e972b19216606dccd9019708ec56 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 17 May 2017 17:54:48 +0200 Subject: Update latest CMakeLists files from app-templates. Better handling of dependencies using TARGET_LINK_DIRECTORIES directive Change-Id: Iffead28aa2e2696cdc9103301d013deee2e6b1ab Signed-off-by: Romain Forlot --- CAN-binder/libs/isotp-c/CMakeLists.txt | 3 +-- CAN-binder/libs/uds-c/CMakeLists.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'CAN-binder/libs') diff --git a/CAN-binder/libs/isotp-c/CMakeLists.txt b/CAN-binder/libs/isotp-c/CMakeLists.txt index a494212..fbb5161 100644 --- a/CAN-binder/libs/isotp-c/CMakeLists.txt +++ b/CAN-binder/libs/isotp-c/CMakeLists.txt @@ -32,12 +32,11 @@ PROJECT_TARGET_ADD(isotp-c) ) # Define target includes - get_target_property(Bitfield_inc bitfield-c INCLUDE_DIRECTORIES) TARGET_INCLUDE_DIRECTORIES(${TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src - ${Bitfield_inc} ) # Library dependencies (include updates automatically) TARGET_LINK_LIBRARIES(${TARGET_NAME} + bitfield-c ${link_libraries}) diff --git a/CAN-binder/libs/uds-c/CMakeLists.txt b/CAN-binder/libs/uds-c/CMakeLists.txt index 34ae4ea..8f78fd6 100644 --- a/CAN-binder/libs/uds-c/CMakeLists.txt +++ b/CAN-binder/libs/uds-c/CMakeLists.txt @@ -31,12 +31,11 @@ PROJECT_TARGET_ADD(uds-c) ) # Define target includes - get_target_property(IsoTP_inc isotp-c INCLUDE_DIRECTORIES) TARGET_INCLUDE_DIRECTORIES(${TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src - ${IsoTP_inc} ) # Library dependencies (include updates automatically) TARGET_LINK_LIBRARIES(${TARGET_NAME} + isotp-c ${link_libraries}) -- cgit 1.2.3-korg