Skip to content

Commit

Permalink
build: update cmake
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Oct 27, 2023
1 parent b37db87 commit 6943a7b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,27 @@ target_link_libraries(dtk PRIVATE
# install
install(TARGETS dtk DESTINATION ${DTK_INSTALL_LIBDIR})
install(FILES ${dir_headers} DESTINATION ${DTK_INSTALL_INCLUDEDIR})]]

# # 打包
# # @todo 导出静态库与动态库
# packageProject(
# # 要导出的 target
# NAME dtk
# # 版本
# VERSION ${PROJECT_VERSION}
# # 生成文件目录
# BINARY_DIR ${PROJECT_BINARY_DIR}
# # 头文件路径
# INCLUDE_DIR ${PROJECT_SOURCE_DIR}/src/include
# # 与 target 的 INSTALL_INTERFACE 一致
# INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
# # 头文件过滤
# INCLUDE_HEADER_PATTERN "*.h"
# # namespace 名称,不能包含 '::'
# NAMESPACE ${PROJECT_NAMESPACE}
# # (optional) option to disable the versioning of install destinations
# DISABLE_VERSION_SUFFIX YES
# ARCH_INDEPENDENT YES
# # 生成 CPack 变量
# CPACK YES
# )

0 comments on commit 6943a7b

Please sign in to comment.