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.
13 lines
332 B
13 lines
332 B
7 years ago
|
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()
|