|
@@ -1,4 +1,7 @@
|
|
|
+{# DEPRECATED -#}
|
|
|
{% include prologue ignore missing %}
|
|
|
+{#- ENABLE AFTER yexport RELEASE #}
|
|
|
+{#- include 'prologue.cmake' ignore missing #}
|
|
|
{% include '[generator]/disclaimer.jinja' -%}
|
|
|
|
|
|
{% for package in packages -%}
|
|
@@ -8,9 +11,11 @@ find_package({{ package[0] }} REQUIRED
|
|
|
{%- endfor %}
|
|
|
{%- endif %})
|
|
|
{% endfor -%}
|
|
|
-{% for incl in includes -%}
|
|
|
+{% if includes is defined -%}
|
|
|
+{% for incl in includes -%}
|
|
|
include({{ incl }})
|
|
|
-{% endfor -%}
|
|
|
+{% endfor -%}
|
|
|
+{% endif -%}
|
|
|
{% for subdir in subdirs -%}
|
|
|
add_subdirectory({{ subdir }})
|
|
|
{% endfor -%}
|
|
@@ -21,15 +26,18 @@ add_subdirectory({{ subdir }})
|
|
|
|
|
|
{% endfor -%}
|
|
|
{% for target in targets %}
|
|
|
-{%- set macro = target.macro -%}
|
|
|
- {%- set name = target.name -%}
|
|
|
- {%- set is_interface = target.is_interface -%}
|
|
|
- {%- set macro_args = target.macro_args -%}
|
|
|
- {%- set properties = target.properties -%}
|
|
|
- {%- set attributes = target.attributes -%}
|
|
|
- {%- set target_dir_macros = target.target_dir_macros -%}
|
|
|
- {%- set target_macros = target.target_macros -%}
|
|
|
- {%- set dependencies = target.dependencies -%}
|
|
|
- {%- include '[generator]/target_cmake_lists.jinja' %}{{"\n"}}
|
|
|
+{%- set macro = target.macro -%}
|
|
|
+{%- set name = target.name -%}
|
|
|
+{%- set is_interface = target.is_interface -%}
|
|
|
+{%- set macro_args = target.macro_args -%}
|
|
|
+{%- set properties = target.properties -%}
|
|
|
+{%- set attributes = target.attributes -%}
|
|
|
+{%- set target_dir_macros = target.target_dir_macros -%}
|
|
|
+{%- set target_macros = target.target_macros -%}
|
|
|
+{%- set dependencies = target.dependencies -%}
|
|
|
+{%- include '[generator]/target_cmake_lists.jinja' %}{{"\n"}}
|
|
|
{%- endfor %}
|
|
|
+{# DEPRECATED -#}
|
|
|
{% include epilogue ignore missing %}
|
|
|
+{#- ENABLE AFTER yexport RELEASE #}
|
|
|
+{#- include 'epilogue.cmake' ignore missing #}
|