cmake/Tests/RunCMake/add_library/SHAREDwithOnlyObjectSources.cmake

6 lines
208 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_sources(TestSharedLibWithoutSources PUBLIC $<TARGET_OBJECTS:ObjectLibDependency>)