build: allow symlink-preferred install

This commit is contained in:
Roland Conybeare 2023-10-19 16:34:28 -04:00
commit 36a6edc51f
2 changed files with 11 additions and 5 deletions

View file

@ -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)
# ----------------------------------------------------------------

View file

@ -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