-
Notifications
You must be signed in to change notification settings - Fork 988
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
How to use conan-2 to package an existing library( ITK ) #17447
Comments
Hi @986247404 Thanks for your question. I think it is very likely that you are missing a lot of information in the Otherwise, it is possible that it is necessary to specify in the And finally it is also very important the consumer code, using |
Many thanks for your replying. If a library don't have xxx-config.cmake files and , what should i do to package a conan recipe and used in cmake project. Are xxx-config.cmake files "nice to have" or strictly required? |
The
|
Is there anything missing from the ConanCenter version of ITK (https://conan.io/center/recipes/itk)? I'm not trying to imply that you should use it necessarily, just curious. |
Thanks a lot. |
Because i have to use Module_ITKDCMTK and Module_IODCMTK modules in ITK. |
Ok, in that case you might want to give the updated recipe in conan-io/conan-center-index#21651 a try, which adds DCMTK support. It's also available at https://github.com/valgur/conan-center-index?tab=readme-ov-file#setup. |
What is your question?
Hi!
I want to package the compiled ITK library. The conan command is " conan export-pkg . -s build_type=Release". But I can't use this recipe in a cmake project through find_package(). What should i do ? Looking forward to your reply.
My conanfile.py like this:
from conan import ConanFile
from conan.tools.files import copy, collect_libs
import os
class ITKConan(ConanFile):
name = "itk"
version = "5.1.0"
settings = "os", "compiler", "build_type", "arch"
package_type = "shared-library"
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: