summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_executable/NoSourcesButLinkObjects.cmake
blob: d0f20934e62c113fcfdf197e3076f9e0e4e666cc (plain)
1
2
3
4
5
enable_language(CXX)
add_library(ObjectLibDependency OBJECT test.cpp)

add_executable(TestExeWithoutSources)
target_link_libraries(TestExeWithoutSources PUBLIC $<TARGET_OBJECTS:ObjectLibDependency>)