[CMake] Adding an existing .vcxproj
Vladimir Jaksic
vladimir.jaksic at gmail.com
Thu Oct 11 04:25:42 EDT 2012
Hello,
Normally when creating a project that statically links another library
(in win32), i would do write something along the lines of:
project(A)
...
add_subdirectory(libraryB)
....
target_link_libraries(A libraryB)
...
This would assume that the directory libraryB contains its own
CMakeLists.txt file.
But what if that is not the case, but directory libraryB contains only
the .vcxproj file, and i want to achieve the same effect, i want the
libraryB.lib statically linked to my executable (or library).
I have tried to use INCLUDE_EXTERNAL_MSPROJECT, but i did not achieve
desired results. Is there any way to bring this about?
Vladimir
More information about the CMake
mailing list