blob: 3080377cbe5a0d3c8c683ea8e0326bd8b19a6100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
include_guard()
set(prop_name VAR_SCRIPT_COUNT)
get_property(count_is_set GLOBAL PROPERTY ${prop_name} SET)
if(NOT count_is_set)
set_property(GLOBAL PROPERTY ${prop_name} 1)
else()
get_property(count GLOBAL PROPERTY ${prop_name})
math(EXPR count "${count} + 1")
set_property(GLOBAL PROPERTY ${prop_name} ${count})
endif()
|