[Cmake] Forcing dlls under VC6, WinXP

Bill Hoffman bill.hoffman at kitware.com
Wed Mar 19 12:12:50 EST 2003


I think what you want is:

 ADD_LIBRARY(mylibraryTcl SHARED)

Also, see my previous message about dll's and windows.

-Bill

At 03:15 PM 3/18/2003, Bertram Herzog wrote:
>Hello together,
>sorry for the kind-of-newby question, but:
>I'm imitating "the ITK-way" of using cmake to build wrappers for tcl via cable.
>
>How do I force the compilation of dlls in Visual Studio 6?
>
>If I do the "by hand approach" for cable, as explained on cthe cable-website, I get *.dll with the *.lib files, if I do it in the ITK-way, (snippet from my CMakeLists.txt anaologous to the {ITK}/Wrapping/Tcl/ depth of the build-tree):
>
>(ADD_LIBRARY(mylibraryTcl)
>
>ITK_WRAP_TCL(mylibraryTcl
> mylib_config.cxx
>)
>
>TARGET_LINK_LIBRARIES(mylibraryTcl ${CABLE_TCL_LIBRARY})
>INSTALL_TARGETS({ITK_SOURCE_DIR}/Wrapping/Tcl/libs/mylibraryTcl)
>
>I only get *.lib-files.
>
>If I try to load the gnerated mylibraryTcl.lib after loading the CableTclFacility, I get the error of  "Couldn't load library ".../mylibraryTcl.lib": invalid argument".
>
>Thank you very much in advance,
> Yours Bertram Herzog
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake






More information about the CMake mailing list