summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaya Sugiura <ssugiura@jp.adit-jv.com>2021-07-28 10:31:11 +0900
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-10-05 11:19:26 +0900
commit9887f590edf9f49421d871d4499cdee55ba7bbd3 (patch)
tree893e5ca7a2ac181e6909ecd03ddb09715db6fcec
parent41b9e2cec308a3679b83dd185ea6781bf1d374f9 (diff)
downloadDLT-daemon-9887f590edf9f49421d871d4499cdee55ba7bbd3.tar.gz
include: Refactor CMakeLists.txt
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
-rw-r--r--include/dlt/CMakeLists.txt24
1 files changed, 14 insertions, 10 deletions
diff --git a/include/dlt/CMakeLists.txt b/include/dlt/CMakeLists.txt
index 460a410..9362821 100644
--- a/include/dlt/CMakeLists.txt
+++ b/include/dlt/CMakeLists.txt
@@ -15,17 +15,21 @@
configure_file(dlt_user.h.in dlt_user.h)
-install(FILES dlt.h dlt_user_macros.h dlt_client.h dlt_protocol.h
- dlt_common.h dlt_types.h dlt_shm.h dlt_offline_trace.h
- dlt_filetransfer.h dlt_common_api.h
- ${CMAKE_CURRENT_BINARY_DIR}/dlt_version.h
- ${CMAKE_CURRENT_BINARY_DIR}/dlt_user.h
- DESTINATION include/dlt
- COMPONENT devel)
+set(HEADER_LIST dlt.h dlt_user_macros.h dlt_client.h dlt_protocol.h
+ dlt_common.h dlt_types.h dlt_shm.h dlt_offline_trace.h
+ dlt_filetransfer.h dlt_common_api.h
+ ${CMAKE_CURRENT_BINARY_DIR}/dlt_version.h
+ ${CMAKE_CURRENT_BINARY_DIR}/dlt_user.h)
+
+if(WITH_DLT_DISABLE_MACRO)
+ list(REMOVE_ITEM HEADER_LIST dlt_user_macros.h)
+endif()
if(WITH_DLT_CXX11_EXT)
- install(FILES dlt_cpp_extension.hpp
- DESTINATION include/dlt
- COMPONENT devel)
+ list(APPEND HEADER_LIST dlt_cpp_extension.hpp)
endif()
+install(FILES ${HEADER_LIST}
+ DESTINATION include/dlt
+ COMPONENT devel)
+