diff --git a/CMakeLists.txt b/CMakeLists.txt index c5413d7a..3f68effb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,14 +51,15 @@ add_subdirectory(example) # output targets set(SELF_LIB randomgen) -add_library(${SELF_LIB} INTERFACE) -xo_include_headeronly_options2(${SELF_LIB}) +xo_add_headeronly_library(${SELF_LIB}) +#add_library(${SELF_LIB} INTERFACE) +#xo_include_headeronly_options2(${SELF_LIB}) # ---------------------------------------------------------------- # standard install + provide find_package() support -xo_install_library2(${SELF_LIB}) -xo_install_include_tree() +xo_install_library4(${SELF_LIB} ${PROJECT_NAME}Targets) +#xo_install_include_tree() xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets) # ---------------------------------------------------------------- diff --git a/README.md b/README.md index 73f13f1b..414a8218 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ # random number generators -# to build + install locally +## Getting Started +### build + install dependencies + +- see [github/Rconybea/cmake](https://github.com/Rconybea/xo-cmake) -- cmake modules + +### to build + install locally ``` $ cd randomgen $ mkdir build