nix build: xo-reader: build + install docs+examples + build fix
This commit is contained in:
parent
35334154c8
commit
d719705f2e
5 changed files with 50 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue