diff --git a/xo-ratio/CMakeLists.txt b/xo-ratio/CMakeLists.txt index 4763965c..6a6ae9c9 100644 --- a/xo-ratio/CMakeLists.txt +++ b/xo-ratio/CMakeLists.txt @@ -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 diff --git a/xo-ratio/example/ex1/CMakeLists.txt b/xo-ratio/example/ex1/CMakeLists.txt index db66601f..84feec7d 100644 --- a/xo-ratio/example/ex1/CMakeLists.txt +++ b/xo-ratio/example/ex1/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