[Cmake] Adding executables that use dlls

William A. Hoffman bill.hoffman at kitware.com
Wed Dec 12 08:26:42 EST 2001


Use either the LINK_LIBRARIES command or the TARGET_LINK_LIBRARIES command.
For an example with VTK, see Examples/Tutorial/Step1/Cxx/CMakeLists.txt.

-Bill

At 08:00 AM 12/12/2001 -0500, Asad A. Abu-Tarif wrote:
>Hi,
>I'm trying to use CMake to build a package that I wrote.
>I can generate the libraries fine. However, as soon as I
>start adding executables, I start getting errors like: undefined
>symbol.
>
>For example, here is one executable I'm trying to add:
>
>ADD_EXECUTABLE(ExecTestingPowellCompilation ExecTestingPowellCompilation.cpp
>TestingPowellCompilation.cpp )
>
>However, I should also link VTKCommon with those files because
>they use it. How do I do that?
>
>Thanks a lot,
>Asad
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake




More information about the CMake mailing list