xo-flatstring: build: install examples if XO_ENABLE_EXAMPLES
This commit is contained in:
parent
12f275a5d9
commit
ca9fd7a96b
2 changed files with 12 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue