Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cpp-ipc-targets #111

Merged
merged 3 commits into from
Dec 10, 2023
Merged

Add cpp-ipc-targets #111

merged 3 commits into from
Dec 10, 2023

Conversation

winsoft666
Copy link
Contributor

主要用于修复bug #110

待合并这个PR后,我再提交最新代码到vcpkg。

添加cpp-ipc-targets后,支持使用find_package查找安装的包。以echo程序为例,将echo移动到项目外后,CMake修改为如下即可:

cmake_minimum_required(VERSION 3.26)
project(chat)

file(GLOB SRC_FILES ./*.cpp)
file(GLOB HEAD_FILES ./*.h)

add_executable(${PROJECT_NAME} ${SRC_FILES} ${HEAD_FILES})

find_package(cpp-ipc CONFIG REQUIRED)
target_link_libraries(chat PRIVATE cpp-ipc::ipc)

添加了PACKAGE_VERSION选项,如有Release新版本,请更新该变量。

@mutouyun mutouyun merged commit 035d76d into mutouyun:master Dec 10, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants