Skip to content

Commit 764ddc2

Browse files
committed
Remove redundant installation artifacts
Signed-off-by: Viktor Kopp <[email protected]>
1 parent 9947be7 commit 764ddc2

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

qdlt/CMakeLists.txt

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -105,32 +105,28 @@ if(DLT_INSTALL_SDK)
105105
install(DIRECTORY "."
106106
DESTINATION "${DLT_ADDITIONAL_FILES_INSTALLATION_PATH}/sdk/include/qdlt"
107107
COMPONENT qdlt_sdk
108-
FILES_MATCHING PATTERN "*.h")
109-
110-
foreach(SDK_EXAMPLE IN ITEMS ${SDK_EXAMPLES})
111-
install(DIRECTORY "../plugin/${SDK_EXAMPLE}"
112-
DESTINATION "${DLT_ADDITIONAL_FILES_INSTALLATION_PATH}/sdk/src"
113-
COMPONENT qdlt_sdk)
114-
endforeach()
108+
FILES_MATCHING PATTERN "*.h"
109+
PATTERN "tests" EXCLUDE
110+
PATTERN "tests/*" EXCLUDE)
111+
set(SDK_EXAMPLES
112+
dummycommandplugin
113+
dummycontrolplugin
114+
dummydecoderplugin
115+
dummyviewerplugin
116+
)
117+
foreach(SDK_EXAMPLE IN ITEMS ${SDK_EXAMPLES})
118+
install(DIRECTORY "../plugin/${SDK_EXAMPLE}"
119+
DESTINATION "${DLT_ADDITIONAL_FILES_INSTALLATION_PATH}/sdk/src"
120+
COMPONENT qdlt_sdk)
121+
endforeach()
115122
endif()
116123

117124
install(DIRECTORY "."
118125
DESTINATION "${DLT_ADDITIONAL_FILES_INSTALLATION_PATH}/include/qdlt"
119126
COMPONENT qdlt_sdk
120-
FILES_MATCHING PATTERN "*.h")
121-
122-
set(SDK_EXAMPLES
123-
dummycommandplugin
124-
dummycontrolplugin
125-
dummydecoderplugin
126-
dummyviewerplugin)
127-
128-
foreach(SDK_EXAMPLE IN ITEMS ${SDK_EXAMPLES})
129-
install(DIRECTORY "../plugin/${SDK_EXAMPLE}"
130-
DESTINATION "${DLT_ADDITIONAL_FILES_INSTALLATION_PATH}/src"
131-
COMPONENT qdlt_sdk)
132-
endforeach()
133-
127+
FILES_MATCHING PATTERN "*.h"
128+
PATTERN "tests" EXCLUDE
129+
PATTERN "tests/*" EXCLUDE)
134130

135131
find_package(GTest)
136132
# configure unit tests only if gtest found on the system

0 commit comments

Comments
 (0)