[CMake] How can I write CMakeLists.txt to link a special library?

Werner Smekal smekal at iap.tuwien.ac.at
Mon Dec 15 10:46:57 EST 2008


Hi,

On 15.12.2008, at 16:39, Hendrik Sattler wrote:

> Michael Wild schrieb:
>> if (NOT WIN32)
>>  # use pkg-config to get the directories and then use these values
>>  # in the FIND_PATH() and FIND_LIBRARY() calls
>>  find_package( PkgConfig REQUIRED )
>>  pkg_check_modules( _sigcxx2  REQUIRED sigc++-2.0 )
>> endif (NOT WIN32)
>
> pkgconfig can also be used on win32, so this is not correct,  
> especially
> when using MSYS.

true, works even on windows command line interpreter with MinGW.  
Download pkconfig for Windows here: http://www.gtk.org/download-windows.html

Regards,
Werner



More information about the CMake mailing list