fix: 修正CD错误
This commit is contained in:
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user