xo-flatstring: build: install examples if XO_ENABLE_EXAMPLES

This commit is contained in:
Roland Conybeare 2025-09-22 12:29:29 -04:00
commit ca9fd7a96b
2 changed files with 12 additions and 9 deletions

View file

@ -1,15 +1,12 @@
# xo-flatstring/example/ex1/CMakeLists.txt
set(SELF_EXE xo_flatstring_ex1)
set(SELF_EXE flatstring_ex1)
set(SELF_SRCS ex1.cpp)
add_executable(${SELF_EXE} ${SELF_SRCS})
xo_include_options2(${SELF_EXE})
# ----------------------------------------------------------------
# dependencies..
xo_self_headeronly_dependency(${SELF_EXE} xo_flatstring)
#xo_dependency(${SELF_EXE} reflect)
if (XO_ENABLE_EXAMPLES)
add_executable(${SELF_EXE} ${SELF_SRCS})
xo_include_options2(${SELF_EXE})
xo_self_headeronly_dependency(${SELF_EXE} xo_flatstring)
endif()
# end CMakeLists.txt