cmake/Tests/RunCMake/add_library/INTERFACEwithOnlyObjectSources.cmake

6 lines
220 B
CMake
Raw Normal View History

2018-01-26 17:06:56 +01:00
enable_language(CXX)
add_library(ObjectLibDependency OBJECT test.cpp)
add_library(TestInterfaceLibWithoutSources INTERFACE)
target_sources(TestInterfaceLibWithoutSources INTERFACE $<TARGET_OBJECTS:ObjectLibDependency>)