diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c88ff68..7e9e339f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,13 @@ add_subdirectory(examples) add_subdirectory(utest) xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets) +# ---------------------------------------------------------------- + +if (XO_ENABLE_EXAMPLES) + install(TARGETS xo_expression_repl DESTINATION bin/xo/example/reader) + install(TARGETS xo_expression_replxx DESTINATION bin/xo/example/reader) +endif() + # ---------------------------------------------------------------- # docs targets depends on other library/utest/exec targets, # must come after them diff --git a/examples/exprrepl/CMakeLists.txt b/examples/exprrepl/CMakeLists.txt index 9296f119..003c9cb0 100644 --- a/examples/exprrepl/CMakeLists.txt +++ b/examples/exprrepl/CMakeLists.txt @@ -5,7 +5,7 @@ set(SELF_SRCS exprrepl.cpp) if (XO_ENABLE_EXAMPLES) xo_add_executable(${SELF_EXE} ${SELF_SRCS}) - xo_dependency(${SELF_EXE} xo_reader) + xo_self_dependency(${SELF_EXE} xo_reader) endif() # end CMakeLists.txt diff --git a/examples/exprreplxx/CMakeLists.txt b/examples/exprreplxx/CMakeLists.txt index da33e668..c7365632 100644 --- a/examples/exprreplxx/CMakeLists.txt +++ b/examples/exprreplxx/CMakeLists.txt @@ -5,7 +5,7 @@ set(SELF_SRCS exprreplxx.cpp) if (XO_ENABLE_EXAMPLES) xo_add_executable(${SELF_EXE} ${SELF_SRCS}) - xo_dependency(${SELF_EXE} xo_reader) + xo_self_dependency(${SELF_EXE} xo_reader) xo_external_target_dependency(${SELF_EXE} replxx replxx::replxx) find_package(Threads REQUIRED)