You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/add_library/STATICwithNoSourcesButLinkO...

6 lines
215 B

enable_language(CXX)
add_library(ObjectLibDependency OBJECT test.cpp)
add_library(TestStaticLibWithoutSources STATIC)
target_link_libraries(TestStaticLibWithoutSources PUBLIC $<TARGET_OBJECTS:ObjectLibDependency>)