mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 13:05:20 +01:00
make cmake install also install fast_float, update README
This commit is contained in:
parent
4376c84969
commit
1bad4fc3c0
@ -18,6 +18,7 @@ endif()
|
|||||||
|
|
||||||
# ---- Dependencies ----
|
# ---- Dependencies ----
|
||||||
|
|
||||||
|
include(FetchContent)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
fast_float
|
fast_float
|
||||||
GIT_REPOSITORY https://github.com/red0124/fast_float.git
|
GIT_REPOSITORY https://github.com/red0124/fast_float.git
|
||||||
@ -25,6 +26,7 @@ FetchContent_Declare(
|
|||||||
GIT_SHALLOW TRUE)
|
GIT_SHALLOW TRUE)
|
||||||
|
|
||||||
FetchContent_MakeAvailable(fast_float)
|
FetchContent_MakeAvailable(fast_float)
|
||||||
|
set(fast_float_source_dir "${FETCHCONTENT_BASE_DIR}/fast_float-src")
|
||||||
|
|
||||||
# ---- Declare library ----
|
# ---- Declare library ----
|
||||||
|
|
||||||
@ -36,7 +38,7 @@ target_include_directories(
|
|||||||
${ssp_warning_guard}
|
${ssp_warning_guard}
|
||||||
INTERFACE
|
INTERFACE
|
||||||
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
|
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
|
||||||
fast_float
|
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/fast_float>"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features(ssp INTERFACE cxx_std_17)
|
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}")
|
set(ssp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
|
|
||||||
install(
|
install(
|
||||||
DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
|
DIRECTORY "${PROJECT_SOURCE_DIR}/include/" "${fast_float_source_dir}/include/"
|
||||||
DESTINATION "${ssp_include_directory}"
|
DESTINATION "${ssp_include_directory}"
|
||||||
COMPONENT ssp_Development
|
COMPONENT ssp_Development
|
||||||
)
|
)
|
||||||
|
@ -60,8 +60,14 @@ Bill (Heath) Gates 65 3.3
|
|||||||
* Fast
|
* Fast
|
||||||
|
|
||||||
# Installation
|
# 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
|
# Usage
|
||||||
|
|
||||||
## Conversions
|
## Conversions
|
||||||
|
Loading…
Reference in New Issue
Block a user