blob: 73fad063f6a5a389746e8dfb8b25f147736fe588 (
plain)
1
2
3
4
5
6
7
8
9
10
|
enable_language(C)
add_library(AnObjLib OBJECT a.c)
target_compile_definitions(AnObjLib INTERFACE REQUIRED)
add_library(A STATIC b.c $<TARGET_OBJECTS:AnObjLib>)
target_link_libraries(A PUBLIC AnObjLib)
add_executable(exe exe.c)
target_link_libraries(exe A)
|