xo-randomgen: build: install examples with XO_ENABLE_EXAMPLES
This commit is contained in:
parent
ddf2ca08e4
commit
752945f815
3 changed files with 12 additions and 6 deletions
|
|
@ -40,4 +40,6 @@ xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets
|
|||
# ----------------------------------------------------------------
|
||||
# install additional components
|
||||
|
||||
if (XO_ENABLE_EXAMPLES)
|
||||
install(TARGETS randomgen_ex1 DESTINATION bin/randomgen/example)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
if (XO_ENABLE_EXAMPLES)
|
||||
add_executable(randomgen_ex1 ex1.cpp)
|
||||
xo_include_options2(randomgen_ex1)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
if (XO_ENABLE_EXAMPLES)
|
||||
add_executable(randomgen_ex2 ex2.cpp)
|
||||
xo_include_options2(randomgen_ex2)
|
||||
xo_dependency(randomgen_ex2 indentlog)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue