[Cmake] Forcing dlls under VC6, WinXP
Bertram Herzog
bherzog@stud.fh-heilbronn.de
Tue Mar 18 20:15:50 EST 2003
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
More information about the CMake
mailing list