make cmake install also install fast_float, update README

This commit is contained in:
ado 2021-02-07 15:07:35 +01:00
parent 4376c84969
commit 1bad4fc3c0
2 changed files with 11 additions and 3 deletions

View File

@ -18,6 +18,7 @@ endif()
# ---- Dependencies ----
include(FetchContent)
FetchContent_Declare(
fast_float
GIT_REPOSITORY https://github.com/red0124/fast_float.git
@ -25,6 +26,7 @@ FetchContent_Declare(
GIT_SHALLOW TRUE)
FetchContent_MakeAvailable(fast_float)
set(fast_float_source_dir "${FETCHCONTENT_BASE_DIR}/fast_float-src")
# ---- Declare library ----
@ -36,7 +38,7 @@ target_include_directories(
${ssp_warning_guard}
INTERFACE
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
fast_float
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/fast_float>"
)
target_compile_features(ssp INTERFACE cxx_std_17)
@ -57,7 +59,7 @@ set(ssp_directory "ssp-${PROJECT_VERSION}")
set(ssp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}")
install(
DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
DIRECTORY "${PROJECT_SOURCE_DIR}/include/" "${fast_float_source_dir}/include/"
DESTINATION "${ssp_include_directory}"
COMPONENT ssp_Development
)

View File

@ -60,8 +60,14 @@ Bill (Heath) Gates 65 3.3
* Fast
# Installation
TODO
$ git clone https://github.com/red0124/ssp
$ cd ssp
$ cmake --configure .
$ sudo make install
*Note, this will also install the fast_float library*
```
# Usage
## Conversions