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

Provide find_package and add_subdirectory #70

Merged
merged 2 commits into from
Jun 22, 2023
Merged

Provide find_package and add_subdirectory #70

merged 2 commits into from
Jun 22, 2023

Conversation

Codesire-Deng
Copy link
Owner

🎉🎉🎉 From now you can install co_context and then use find_package(co_context) in your own project:

  1. Just run cmake -B build && cmake --build build -j && sudo cmake --install build.
  2. Use find_package(co_context) in your CMakeLists.txt.
  3. Write target_link_libraries(${your_target} co_context::co_context) for you target.

Another method is to add_subdirectory(co_context):

  1. Just copy this project to some subdirectory of your project.
  2. Use add_subdirectory(path/to/co_context) in your CMakeLists.txt.
  3. Write target_link_libraries(${your_target} co_context::co_context) for you target.

Please enjoy! 🥰

@Codesire-Deng Codesire-Deng merged commit 3ca06b3 into main Jun 22, 2023
12 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.

None yet

1 participant