You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
351 B
12 lines
351 B
2 years ago
|
|
||
|
enable_language(C)
|
||
|
|
||
|
set_property(SOURCE foo.c PROPERTY COMPILE_DEFINITIONS -DDEF0 "$<1:-DDEF1>")
|
||
|
|
||
|
add_library(lib1 foo.c)
|
||
|
set_property(TARGET lib1 PROPERTY COMPILE_DEFINITIONS -DDEF2 "$<1:-DDEF3>")
|
||
|
set_property(TARGET lib1 PROPERTY INTERFACE_COMPILE_DEFINITIONS -DDEF4 "$<1:-DDEF5>")
|
||
|
|
||
|
add_library(lib2 foo.c)
|
||
|
target_link_libraries(lib2 PRIVATE lib1)
|