globally-unique cmake target names for submodule build

This commit is contained in:
Roland Conybeare 2023-10-22 14:49:21 -04:00
commit fa5e4216a8
3 changed files with 6 additions and 6 deletions

View file

@ -65,4 +65,4 @@ xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets
# ----------------------------------------------------------------
# install additional components
install(TARGETS ex1 DESTINATION bin/randomgen/example)
install(TARGETS randomgen_ex1 DESTINATION bin/randomgen/example)

View file

@ -1,2 +1,2 @@
add_executable(ex1 ex1.cpp)
xo_include_options2(ex1)
add_executable(randomgen_ex1 ex1.cpp)
xo_include_options2(randomgen_ex1)

View file

@ -1,3 +1,3 @@
add_executable(ex2 ex2.cpp)
xo_include_options2(ex2)
xo_dependency(ex2 indentlog)
add_executable(randomgen_ex2 ex2.cpp)
xo_include_options2(randomgen_ex2)
xo_dependency(randomgen_ex2 indentlog)