加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 635 Bytes
一键复制 编辑 原始数据 按行查看 历史
uqbn 提交于 2021-12-06 17:16 . build: support CMake
cmake_minimum_required(VERSION 3.0)
project(lw_oopc VERSION 1.2)
add_library(${PROJECT_NAME} lw_oopc.c lw_oopc.h)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
install(FILES lw_oopc.h DESTINATION include)
install(EXPORT ${PROJECT_NAME}Targets
FILE ${PROJECT_NAME}Config.cmake
DESTINATION lib/cmake/${PROJECT_NAME}
)
install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}Targets
PUBLIC_HEADER DESTINATION include
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化