Skip to content
Snippets Groups Projects

Use target definitions generated by cmake

Merged Reiner Hauser requested to merge rhauser/CrestApi:native-target into release-5.0-CR1

Instead of the manual definition of an imported target, just use the one that CMake has generated.

The namespace of the exported targets is set to CrestApiLib:: so the final target name is the same as before. Unlike the hand made version it has all the correct dependencies and other properties like include paths.

find_dependency() has to be called in the CrestApiLibConfig.cmake file before including the generated targets (the QUIET and REQUIRED options are automatically forwarded, so no need to specify them).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading