-
Notifications
You must be signed in to change notification settings - Fork 343
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (40 loc) · 1.4 KB
/
Copy pathCMakeLists.txt
File metadata and controls
49 lines (40 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#######
# SPDX license identifier: MPL-2.0
#
# Copyright (C) 2011-2015, BMW AG
#
# This file is part of COVESA Project DLT - Diagnostic Log and Trace.
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
# If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# For further information see http://www.covesa.org/.
#######
if(WITH_DLT_DISABLE_MACRO)
set(DLT_DISABLE_MACRO 1)
endif()
configure_file(dlt_user.h.in dlt_user.h)
if(CMAKE_VERSION VERSION_LESS "3.12")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/compat")
include(DltGenerateExportHeader) # compatibilty for pre-3.12 CMake
else()
include(GenerateExportHeader)
endif()
generate_export_header(dlt)
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 dlt_multiple_files.h
${CMAKE_CURRENT_BINARY_DIR}/dlt_version.h
${CMAKE_CURRENT_BINARY_DIR}/dlt_user.h
${CMAKE_CURRENT_BINARY_DIR}/dlt_export.h)
if(WITH_DLT_DISABLE_MACRO)
list(REMOVE_ITEM HEADER_LIST dlt_user_macros.h)
endif()
if(WITH_DLT_CXX11_EXT)
list(APPEND HEADER_LIST dlt_cpp_extension.hpp)
endif()
install(FILES ${HEADER_LIST}
DESTINATION include/dlt
COMPONENT devel)