[cmake-developers] Proposed new CMake module FindITT.cmake

Gurulev, Dmitry dmitry.gurulev at intel.com
Wed May 30 01:38:24 EDT 2018


Hi Brad,

I'm not a maintainer of SEAPI, so I may only propose a package config for it. And second thing - ITT library itself (not a part of SEAPI) is also used and distributed (ex. w/ Intel's VTune app.)

-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com] 
Sent: Tuesday, May 29, 2018 6:12 PM
To: Gurulev, Dmitry <dmitry.gurulev at intel.com>; cmake-developers at cmake.org
Subject: Re: [cmake-developers] Proposed new CMake module FindITT.cmake

On 05/29/2018 10:30 AM, Gurulev, Dmitry wrote:
> Although IntelSEAPI (which contains ITT sources) is a CMake based 
> library, ITT itself might be used as standalone binary library, so 
> finding module still makes sense

If the upstream is CMake-friendly it should provide a CMake Package Configuration File with its SDK along with the headers and libraries.
See documentation here:

  https://cmake.org/cmake/help/v3.11/manual/cmake-packages.7.html

That will allow `find_package` to work without any find module and without guessing which headers and libraries match.

Thanks,
-Brad

--------------------------------------------------------------------
Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the cmake-developers mailing list