加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 963 Bytes
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.14)
project(cb_v2g
VERSION 0.1
DESCRIPTION "V2GTP EXI library"
HOMEPAGE_URL "https://github.com/Everest/libcbv2g"
LANGUAGES C CXX
)
find_package(everest-cmake 0.1 REQUIRED
PATHS ../everest-cmake
)
# options
option(CB_V2G_INSTALL "Install the library (shared data might be installed anyway)" ${EVC_MAIN_PROJECT})
add_subdirectory(lib)
message(STATUS "library code based on cbexigen generator version: 9f0b060")
# tests
if (CB_V2G_BUILD_TESTS)
include(CTest)
add_subdirectory(tests)
endif()
# packaging
if (CB_V2G_INSTALL)
install(
TARGETS
cbv2g_exi_codec
cbv2g_din
cbv2g_iso2
cbv2g_iso20
cbv2g_tp
EXPORT cbv2g-targets
LIBRARY
)
install(
DIRECTORY include/
TYPE INCLUDE
)
evc_setup_package(
NAME cbv2g
NAMESPACE cbv2g
EXPORT cbv2g-targets
)
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化