Debian Codegraph @

Tests/RunCMake/ObjectLibrary/ImportMultiArch.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_target_properties(A PROPERTIES
7 IMPORTED_OBJECTS "${CMAKE_CURRENT_BINARY_DIR}/$(CURRENT_ARCH)/does_not_exist.o"
8 )
9
10 add_library(B SHARED $<TARGET_OBJECTS:A> b.c)
11
12 # We use this to find the relevant lines of the project.pbx file
13 target_link_options(B PRIVATE --findconfig-$<CONFIG>)