cmake/Tests/RunCMake/add_library/SHAREDwithNoSourcesButLinkObjects.cmake

6 lines
215 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(TestSharedLibWithoutSources SHARED)
target_link_libraries(TestSharedLibWithoutSources PUBLIC $<TARGET_OBJECTS:ObjectLibDependency>)