[
https://issues.apache.org/jira/browse/IGNITE-27263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18052177#comment-18052177
]
Dmitrii Zabotlin commented on IGNITE-27263:
-------------------------------------------
This PR adds cmake config files suitable for the `find_package()` cmake routine.
This PR covers 3 different cases:
1. C++ libraries used as dependency and built separately without install. Main
project uses built libraries and headers from the dependency binary directory.
2. C++ libraries used as dependency and build separately with install. Main
project uses built libraries and headers from the specified installation
directory.
3. C++ libraries used as dependency and built as subfolder of the main cmake
project.
Also INSTALL_IGNITE_FILES option removed in this PR because it does not have
much sense. Installation controlled by the called target and not an option.
Also, install calls needed in the cmake to generate and export cmake targets
files properly.
Cmake config files will be added to the installation packages in the next task:
https://issues.apache.org/jira/browse/IGNITE-27579
> C++ Client: Create cmake config file
> ------------------------------------
>
> Key: IGNITE-27263
> URL: https://issues.apache.org/jira/browse/IGNITE-27263
> Project: Ignite
> Issue Type: New Feature
> Components: platforms ai3, thin clients ai3
> Affects Versions: 3.1
> Reporter: Eduard Rakhmankulov
> Assignee: Dmitrii Zabotlin
> Priority: Major
> Labels: ignite-3
> Fix For: 3.2
>
> Time Spent: 3.5h
> Remaining Estimate: 0h
>
> When user uses cmake project which uses Ignite c++ client as dependency it is
> better to use cmake mechanism to discover libraries (find_package).
> Let's implement corresponding cmake configuration for that purposes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)