From: David L. <lon...@gm...> - 2010-05-28 11:53:31
|
Hi Marcus, >> to try linking the xtalopt.so file, but this didn't work, as CMake >> sees xtalopt as a "module", and not a "shared library", though AFAIK >> these are the same on linux, correct? > > They are the same on Linux, and so if I were you I would probably explore > making it shared. We did this for quite a while in Avogadro before I changed > it to module (as that is what a plugin is). I copied avogadro_plugin into my CMakeLists.txt and changed MODULE to SHARED, ran all the extension sources through it, then linked the plugin target to the test target -- works a treat! > You ran into the automoc/wrap_cpp logic too - I should harmonize that. The > advantage of wrap_cpp is that it generates a list of moc source files, and you > can use the build system to link them in. With automoc it guesses what the file > should be called, and then creates it. > > Essentially they both do the same thing in the end, one passes extra source > files into the build system, the other requires a direct include in your source > file. Ah, ok. That clears up some of my questions about that. Thanks, Dave |