Debian Codegraph @

Tests/RunCMake/ObjectLibrary/Import.cmake

raw
1
2 add_library(A OBJECT IMPORTED)
3
4 # We don't actually build this example so just configure dummy
5 # object files to test. They do not have to exist.
6 set_property(TARGET A APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
7 set_target_properties(A PROPERTIES
8 IMPORTED_OBJECTS_DEBUG "${CMAKE_CURRENT_BINARY_DIR}/does_not_exist.o"
9 IMPORTED_OBJECTS "${CMAKE_CURRENT_BINARY_DIR}/does_not_exist.o"
10 )
11
12 add_library(B $<TARGET_OBJECTS:A> b.c)