[CMake] add additional lib
Mateusz Loskot
mateusz at loskot.net
Thu Jul 12 12:39:02 EDT 2012
On 12 July 2012 17:30, Yixun Liu <yxliuwm at gmail.com> wrote:
> Hi,
> I am using
> # Find VTK
> FIND_PACKAGE(VTK REQUIRED)
> IF(VTK_FOUND)
> INCLUDE(${VTK_USE_FILE})
> ENDIF(VTK_FOUND)
>
> VTK_LIBRARIES does not include one lib.
>
> TARGET_LINK_LIBRARIES(ProjecctName ${VTK_LIBRARIES}
>
> How to add this lib into the variable VTK_LIBRARIES or
> TARGET_LINK_LIBRARIES?
http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:target_link_libraries
[item1 [item2 [...]]]
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
More information about the CMake
mailing list