1 Star 2 Fork 2

明月惊鹊/kcp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 681 Bytes
一键复制 编辑 原始数据 按行查看 历史
myd7349 提交于 2019-09-21 14:24 . improve CMakeLists.txt
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
project(kcp LANGUAGES C)
include(CTest)
include(GNUInstallDirs)
add_library(kcp STATIC ikcp.c)
install(FILES ikcp.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(TARGETS kcp
EXPORT kcp-targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(EXPORT kcp-targets
FILE kcp-config.cmake
NAMESPACE kcp::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kcp
)
if (BUILD_TESTING)
enable_language(CXX)
add_executable(kcp_test test.cpp)
if(MSVC AND NOT (MSVC_VERSION LESS 1900))
target_compile_options(kcp_test PRIVATE /utf-8)
endif()
endif ()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/mingyuejingque/kcp.git
[email protected]:mingyuejingque/kcp.git
mingyuejingque
kcp
kcp
master

搜索帮助