mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
With VS generators for 2010 and above, passing a `.targets` file to `target_link_libraries` is expected to generate content in the `.vcxproj` file to import the targets file. Add a test to cover this.
10 lines
258 B
CMake
10 lines
258 B
CMake
enable_language(CXX)
|
|
add_library(foo foo.cpp)
|
|
target_link_libraries(foo ${CMAKE_BINARY_DIR}/xyzzy.targets)
|
|
|
|
add_library(bar bar.cpp)
|
|
target_link_libraries(bar foo ${CMAKE_BINARY_DIR}/waldo.targets)
|
|
|
|
add_executable(baz baz.cpp)
|
|
target_link_libraries(baz bar)
|