> Great, now it works!
> My CMakeLists.txt now looks like this:

I would put everything in an executable, without an intermediate step with
ADD_LIBRARY. When I tested my suggestions for you on my computer, they
worked without any intermediate library. But you might have some other
project in mind, so it might be a matter of taste.

I would also use STATIC instead of SHARED, but it depends on what you need.

Denis



      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to