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
339 B
13 lines
339 B
include_guard(GLOBAL)
|
|
|
|
set(prop_name GLOB_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()
|