[CMake] find_package(xyz)

Marshall, Rob robm at qti.qualcomm.com
Mon Nov 5 13:41:43 EST 2012


Thanks Alex,

I am using ExternalProject_Add() to add websocketpp to my build and it generates the library libwebsocketpp.a fine.
My question is what is the standard way that other CMAKE projects would locate the library for linking?

Thanks,
Rob

-----Original Message-----
From: Alexander Neundorf [mailto:a.neundorf-work at gmx.net] 
Sent: Monday, November 05, 2012 9:26 AM
To: cmake at cmake.org
Cc: Marshall, Rob
Subject: Re: [CMake] find_package(xyz)

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