Support dynamic library. (#225)

- Let the global `BUILD_SHARED_LIBS` dictates whether the library should
  be built statically or dynamically. The cmake's default is statically.
- Add library version and symlink.

This lead to the following install tree.
.
├── include
│   └── ftxui
│       ├── component [...]
│       ├── dom [...]
│       ├── screen [...]
│       └── util [...]
└── lib
    ├── cmake
    │   └── ftxui
    │       ├── ftxui-config.cmake
    │       ├── ftxui-config-version.cmake
    │       └── ftxui-config-version-noconfig.cmake
    ├── ftxui-component.so -> ftxui-component.so.0.10.369
    ├── ftxui-component.so.0.10.369
    ├── ftxui-dom.so -> ftxui-dom.so.0.10.369
    ├── ftxui-dom.so.0.10.369
    ├── ftxui-screen.so -> ftxui-screen.so.0.10.369
    └── ftxui-screen.so.0.10.369

Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/223
This commit is contained in:
Arthur Sonzogni
2021-10-10 12:52:34 +02:00
committed by GitHub
parent 75482d82d4
commit 57a5512a22
2 changed files with 21 additions and 9 deletions

View File

@@ -1,11 +1,19 @@
# Changelog
Changelog
=========
## Current
Unreleased (development)
------------------------
## Bug
- On Unix system, fallback to {80,25} screen dimension on failure.
## 0.10 (2021-09-30)
## CMake
Added:
- Support for shared library, via `BUILD_SHARED_LIBS` option.
- Add library version and symlinks.
0.10 (2021-09-30)
--------------------
## Bug
- Fix the automated merge of borders.
@@ -17,7 +25,8 @@
- `Maybe`: Display an component conditionnally based on a boolean.
- `Dropdown`: A dropdown select list.
## 0.9 (2021-09-26)
0.9 (2021-09-26)
----------------
The initial release where changelog where written.