vyasr commented on issue #36411: URL: https://github.com/apache/arrow/issues/36411#issuecomment-2738318741
Ah yes sorry I did misunderstand. Presumably when you say > the question was whether other build systems, such as autotools or cmake, can arrange to install a targets file, you didn't mean to include cmake itself in that list? You mean for other tools like Meson or Bazel? You are correct, I'm not aware of any particularly handy templates for the targets file. As far as the complexity, it really boils down to how complex a target you wish to provide. The most basic targets file would be as simple as ``` add_library(pkg IMPORTED) set_target_properties(pkg IMPORTED_LOCATION /path/to/library) ``` Typically you will also want to specify whether the target is a shared/static library, set include directories, etc, but really nothing that can't be done with some `set_target_properties` calls. The main trick is ensuring that the file is relocatable, so ideally at the top you'll have paths set based on the `CMAKE_CURRENT_LIST_DIR` or a template variable that's filled in by a CMake `configure_file` call. If you were generating the file using Meson or another build system, you'd have to use the whatever the corresponding API for formatting a template file would be. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org