[CMake] install(EXPORT ...)
Michael Wild
themiwi at gmail.com
Wed Dec 2 05:10:07 EST 2009
I just found out that in the new CMake-2.8 there is also
export(PACKAGE package_name)
which adds your build-tree to the user's package database and helps
CMake finding build-trees when using find_package(package_name) from
another project. However, this still requires that you create an
export-file in the build tree and you need a valid package_name-
config.cmake in the build-tree. Very useful, IMHO.
Michael
On 2. Dec, 2009, at 11:06 , Biddiscombe, John A. wrote:
> Michael
>
> Thank you. That seems to do what I need.
>
> JB
>
>> You can use
>>
>> export(TARGETS target ...
>> [NAMESPACE namespace]
>> [APPEND]
>> FILE output_file
>> )
>>
>> which you can then include() in your dependent project.
>>
>> Michael
More information about the CMake
mailing list