blob: 469ecd3cbebd9c7bfe2683aad21ae975527f8c0f (
plain)
1
2
3
4
5
6
7
8
9
10
|
entity_lib = static_library('entity', 'entity1.c')
entity_dep = declare_dependency(link_with : [[entity_lib]],
include_directories : [['.']],
sources : 'entity2.c',
compile_args : ['-DUSING_ENT=1'],
version : '1.2.3',
link_args : []) # No simple way of testing linker flags :(.
assert(entity_dep.version().version_compare('==1.2.3'), 'Declare_dep has incorrect version string.')
|