xo-indentlog: streamline build for examples

This commit is contained in:
Roland Conybeare 2024-05-30 16:35:01 -04:00
commit 25039f88e8
7 changed files with 42 additions and 25 deletions

View file

@ -1,2 +1,4 @@
add_executable(indentlog_ex1 ex1.cpp)
xo_include_options2(indentlog_ex1)
if (XO_ENABLE_EXAMPLES)
add_executable(indentlog_ex1 ex1.cpp)
xo_include_options2(indentlog_ex1)
endif()

View file

@ -1,4 +1,6 @@
# NOTE: need target names to be globally unique within the xo umbrella
add_executable(indentlog_ex2 ex2.cpp)
xo_include_options2(indentlog_ex2)
if (XO_ENABLE_EXAMPLES)
add_executable(indentlog_ex2 ex2.cpp)
xo_include_options2(indentlog_ex2)
endif()

View file

@ -1,2 +1,4 @@
add_executable(indentlog_ex3 ex3.cpp)
xo_include_options2(indentlog_ex3)
if (XO_ENABLE_EXAMPLES)
add_executable(indentlog_ex3 ex3.cpp)
xo_include_options2(indentlog_ex3)
endif()

View file

@ -1,2 +1,4 @@
add_executable(indentlog_ex4 ex4.cpp)
xo_include_options2(indentlog_ex4)
if (XO_ENABLE_EXAMPLES)
add_executable(indentlog_ex4 ex4.cpp)
xo_include_options2(indentlog_ex4)
endif()

View file

@ -1,2 +1,4 @@
add_executable(hello hello.cpp)
xo_include_options2(hello)
if (XO_ENABLE_EXAMPLES)
add_executable(hello hello.cpp)
xo_include_options2(hello)
endif()