blob: 2f883af9e2341696297b38d64b7282b824a57fa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
enable_language(C)
add_library(a a.c)
add_library(b c.c)
target_link_libraries(a b)
add_library(c c.c)
add_dependencies(a c)
get_property(DEPS_A TARGET a PROPERTY MANUALLY_ADDED_DEPENDENCIES)
if(NOT DEPS_A STREQUAL "c")
message(FATAL_ERROR "Expected target c being a dependency of a but got: '${DEPS_A}'")
endif()
|