xo-ratio: build fix for indentlog dep + install examples
This commit is contained in:
parent
752945f815
commit
9ffeb47c4c
2 changed files with 11 additions and 11 deletions
|
|
@ -31,17 +31,17 @@ xo_add_headeronly_library(${SELF_LIB})
|
|||
xo_install_library4(${SELF_LIB} ${PROJECT_NAME}Targets)
|
||||
xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets)
|
||||
|
||||
xo_headeronly_dependency(${SELF_LIB} xo_reflectutil)
|
||||
xo_headeronly_dependency(${SELF_LIB} xo_flatstring)
|
||||
|
||||
if (XO_ENABLE_EXAMPLES)
|
||||
install(TARGETS ratio_ex1 DESTINATION bin/ratio/example)
|
||||
endif()
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
# docs targets depend on all the other library/utest targets
|
||||
# docs targets depend on all the other library/utest targets,
|
||||
# must come after them
|
||||
#
|
||||
add_subdirectory(docs)
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
# dependencies
|
||||
|
||||
xo_headeronly_dependency(${SELF_LIB} xo_reflectutil)
|
||||
xo_headeronly_dependency(${SELF_LIB} xo_flatstring)
|
||||
#xo_headeronly_dependency(${SELF_LIB} randomgen)
|
||||
# etc..
|
||||
|
||||
# end CMakeLists.txt
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
# xo-ratio/example/ex1/CMakeLists.txt
|
||||
|
||||
set(SELF_EXE xo_ratio_ex1)
|
||||
set(SELF_EXE ratio_ex1)
|
||||
set(SELF_SRCS ex1.cpp)
|
||||
|
||||
if (XO_ENABLE_EXAMPLES)
|
||||
add_executable(${SELF_EXE} ${SELF_SRCS})
|
||||
xo_include_options2(${SELF_EXE})
|
||||
xo_self_dependency(${SELF_EXE} xo_ratio)
|
||||
xo_self_dependency(${SELF_EXE} indentlog)
|
||||
xo_headeronly_dependency(${SELF_EXE} indentlog)
|
||||
endif()
|
||||
|
||||
# end CMakeLists.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue