mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 13:05:20 +01:00
Merge pull request #7 from red0124/feature/no_install
Feature/no install
This commit is contained in:
commit
df2be68de1
@ -47,49 +47,3 @@ target_link_libraries(
|
|||||||
"$<$<AND:$<CXX_COMPILER_ID:AppleClang,Clang>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:c++fs>"
|
"$<$<AND:$<CXX_COMPILER_ID:AppleClang,Clang>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:c++fs>"
|
||||||
"$<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.1>>:stdc++fs>"
|
"$<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.1>>:stdc++fs>"
|
||||||
)
|
)
|
||||||
|
|
||||||
# ---- Install ----
|
|
||||||
|
|
||||||
include(CMakePackageConfigHelpers)
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
|
|
||||||
set(ssp_directory "ssp-${PROJECT_VERSION}")
|
|
||||||
set(ssp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
||||||
|
|
||||||
install(
|
|
||||||
DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
|
|
||||||
DESTINATION "${ssp_include_directory}"
|
|
||||||
COMPONENT ssp_Development
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
|
||||||
TARGETS ssp
|
|
||||||
EXPORT sspTargets
|
|
||||||
INCLUDES DESTINATION "${ssp_include_directory}"
|
|
||||||
)
|
|
||||||
|
|
||||||
write_basic_package_version_file(
|
|
||||||
ssp-config-version.cmake
|
|
||||||
COMPATIBILITY SameMajorVersion
|
|
||||||
ARCH_INDEPENDENT
|
|
||||||
)
|
|
||||||
|
|
||||||
set(ssp_install_cmakedir "${CMAKE_INSTALL_LIBDIR}/cmake/${ssp_directory}")
|
|
||||||
|
|
||||||
install(
|
|
||||||
FILES "${PROJECT_BINARY_DIR}/ssp-config-version.cmake"
|
|
||||||
DESTINATION "${ssp_install_cmakedir}"
|
|
||||||
COMPONENT ssp_Development
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
|
||||||
EXPORT sspTargets
|
|
||||||
FILE ssp-config.cmake
|
|
||||||
NAMESPACE ssp::
|
|
||||||
DESTINATION "${ssp_install_cmakedir}"
|
|
||||||
COMPONENT ssp_Development
|
|
||||||
)
|
|
||||||
|
|
||||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
|
||||||
include(CPack)
|
|
||||||
endif()
|
|
||||||
|
@ -59,14 +59,6 @@ Bill (Heath) Gates 65 3.3
|
|||||||
* Conversions can be chained if invalid
|
* Conversions can be chained if invalid
|
||||||
* Fast
|
* Fast
|
||||||
|
|
||||||
# Installation
|
|
||||||
|
|
||||||
```
|
|
||||||
$ git clone https://github.com/red0124/ssp
|
|
||||||
$ cd ssp
|
|
||||||
$ cmake --configure .
|
|
||||||
$ sudo make install
|
|
||||||
```
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
## Conversions
|
## Conversions
|
||||||
|
@ -12,4 +12,6 @@ ssp_dep = declare_dependency(
|
|||||||
dependencies: fast_float_dep
|
dependencies: fast_float_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
subdir('test')
|
if not meson.is_subproject()
|
||||||
|
subdir('test')
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user