[CMake] find_package(xyz)

Alexander Neundorf a.neundorf-work at gmx.net
Mon Nov 5 12:25:58 EST 2012


On Monday 05 November 2012, Marshall, Rob wrote:
> Is the intent of the find_package() macro to be used to locate prebuilt
> third party libraries that have Include and library files prebuilt?
> 
> Or can it be used in a scenario where third party source is on the local
> file system but will be built During the overall build process for a
> project?

In general, find_package() is intended to be used to find libraries which 
already exist on the system, outside your project.

You can use externproject_add() to add projects to your build.

Alex


More information about the CMake mailing list