Re: [CMake] target_link_libraries from executable

2016-03-10 Thread Petr Kmoch
Hi Gilles, I don't think you can get rid of this .lib, which is the import library. Linking in the .exe/.dll world does not use the .exe or .dll file itself as the item to be linked against, but its import library (.lib) instead. You cannot link against a .dll if you only have the .dll, you need i

[CMake] target_link_libraries from executable

2016-03-10 Thread FOLLIC Gilles
Hello, The idea is to get all the depedencies from an other project (executable). set_property(TARGET [EXECUTABLE] PROPERTY ENABLE_EXPORTS true) target_link_libraries(${PROJECT_NAME} [EXECUTABLE]) This works perfectly, as I get all the include, libs I need, but I get on my visual studio