diff --git a/CMakeLists.txt b/CMakeLists.txt index 74d93c9e..95130c2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,10 @@ add_subdirectory(example) add_subdirectory(utest) xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets) +if (XO_ENABLE_EXAMPLES) + install(TARGETS xo_tokenizer_repl DESTINATION bin/xo/example/tokenizer) +endif() + # ---------------------------------------------------------------- # docs targets depend on all the other library/utest targets # diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 1763e146..30289162 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -5,5 +5,5 @@ xo_docdir_doxygen_config() xo_docdir_sphinx_config( index.rst install.rst examples.rst implementation.rst input-state-class.rst scan-result-class.rst schematika-tokens.rst span-class.rst - token-class-rst tokenizer-error-class.rst tokentype-enum.rst + token-class.rst tokenizer-error-class.rst tokentype-enum.rst ) diff --git a/example/tokenrepl/CMakeLists.txt b/example/tokenrepl/CMakeLists.txt index 8bf77b32..60243b7e 100644 --- a/example/tokenrepl/CMakeLists.txt +++ b/example/tokenrepl/CMakeLists.txt @@ -5,7 +5,7 @@ set(SELF_SRCS tokenrepl.cpp) if (XO_ENABLE_EXAMPLES) xo_add_executable(${SELF_EXE} ${SELF_SRCS}) - xo_dependency(${SELF_EXE} xo_tokenizer) + xo_self_dependency(${SELF_EXE} xo_tokenizer) endif() # end CMakeLists.txt