cmake: Install example programs if examples enabled

This commit is contained in:
Jon Shallow committed 2021-12-20 12:24:00 +00:00
1 parent 997c31fa62
commit 18888cd0dd
1 file changed
+12
+12
View File
@@ -699,3 +699,15 @@ install(
COMPONENT dev
FILES_MATCHING
PATTERN "*.h")
if(ENABLE_EXAMPLES)
install(
TARGETS coap-server coap-client coap-rd
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT dev)
if(NOT WIN32)
install(
TARGETS etsi_iot_01 tiny
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT dev)
endif()
endif()