cmake/Tests/RunCMake/add_library/INTERFACEwithNoSourcesButLinkObjects.cmake
2018-01-26 17:06:56 +01:00

6 lines
227 B
CMake

enable_language(CXX)
add_library(ObjectLibDependency OBJECT test.cpp)
add_library(TestInterfaceLibWithoutSources INTERFACE)
target_link_libraries(TestInterfaceLibWithoutSources INTERFACE $<TARGET_OBJECTS:ObjectLibDependency>)