2 Commits
Author SHA1 Message Date
7iwind 5fd55496bf v1.1.0:Merge pull request 'fix: 修正CD错误' (#30) from feature/route into main
CI / host (push) Successful in 3s
CI / cortex-m (push) Successful in 4s
Release / release (push) Successful in 26s
v1.1.0:Reviewed-on: #30
2026-07-27 00:03:44 +08:00
7iwind f0d0c4fb1e fix: 修正CD错误
CI / host (pull_request) Successful in 3s
CI / cortex-m (pull_request) Successful in 4s
2026-07-27 00:02:47 +08:00
+11
View File
@@ -69,3 +69,14 @@ if(BUILD_TESTING OR NOT DEFINED BUILD_TESTING)
target_link_libraries(test_datarouter DataRouter)
add_test(NAME datarouter COMMAND test_datarouter)
endif()
# ── 安装规则(用于打包发布) ─────────────────────────────
include(GNUInstallDirs)
install(TARGETS DataRouter ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/datarouter.h
${CMAKE_CURRENT_SOURCE_DIR}/datarouter_config.h
${CMAKE_CURRENT_SOURCE_DIR}/datarouter_config_template.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)