blob: 9e1ab6d9429f83410c8fd08c6731c45970413e98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
enable_language(C)
add_library(AnObjLib OBJECT a.c)
target_compile_definitions(AnObjLib INTERFACE REQUIRED)
add_library(A STATIC b.c)
target_link_libraries(A PRIVATE AnObjLib)
target_compile_definitions(A INTERFACE $<TARGET_PROPERTY:AnObjLib,INTERFACE_COMPILE_DEFINITIONS>)
add_executable(exe exe.c)
target_link_libraries(exe A)
|