build: allow symlink-preferred install
This commit is contained in:
parent
a4c264d8db
commit
36a6edc51f
2 changed files with 11 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue