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

[build] Export cmake config to ease clients usage in Cmake #5162

Merged
merged 3 commits into from
Jun 15, 2022

Conversation

qiao-bo
Copy link
Contributor

@qiao-bo qiao-bo commented Jun 14, 2022

Related issue = #4832

When using taichi_export_core library in Cmake, clients have to manually linking the .so library and providing include paths etc. This PR enables Taichi to generate cmake configuration files. This allows anyone linking the library in just two cmake instructions:

find_package(taichi_export_core REQUIRED CONFIG)
target_link_libraries(implicit_fem PUBLIC taichi_export_core::taichi_export_core)

An example AOT usage (implicit_fem) can be found at this PR taichi-dev/taichi-aot-demo#21

@netlify
Copy link

netlify bot commented Jun 14, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit d354ed3
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62a89158d3d50f00082c8e1a
😎 Deploy Preview https://deploy-preview-5162--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Please make sure this works with C-API as well :-) #5168

@qiao-bo qiao-bo merged commit 40ff61d into taichi-dev:master Jun 15, 2022
@qiao-bo qiao-bo deleted the cmake_config branch June 15, 2022 03:59
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