[CMake] custom configuration types and linking with 3rd-party libs

Brad King brad.king at kitware.com
Mon Aug 25 20:00:23 EDT 2008


Brad King wrote:
> Use an IMPORTED library.  This is supported in CMake 2.6:
> 
>   add_library(xx_lib STATIC IMPORTED)
>   set_target_properties(xx_lib PROPERTIES
>     IMPORTED_CONFIGURATIONS "DEBUG;RELEASE"
>     IMPORTED_LOCATION_GUIDEBUG ${XX_DEBUG}
>     IMPORTED_LOCATION_GUIRELEASE ${XX_RELEASE}

Oops, the above two lines should not have "GUI" in them.

-Brad


More information about the CMake mailing list