Add option SFIZZ_USE_SYSTEM_ABSEIL
This commit is contained in:
parent
eab7d6e2da
commit
6852bd76e2
2 changed files with 8 additions and 3 deletions
|
|
@ -34,6 +34,7 @@ option_ex (SFIZZ_DEVTOOLS "Enable developer tools build" OFF)
|
|||
option_ex (SFIZZ_SHARED "Enable shared library build" ON)
|
||||
option_ex (SFIZZ_USE_SNDFILE "Enable use of the sndfile library" ON)
|
||||
option_ex (SFIZZ_USE_VCPKG "Assume that sfizz is build using vcpkg" OFF)
|
||||
option_ex (SFIZZ_USE_SYSTEM_ABSEIL "Use Abseil libraries preinstalled on system" OFF)
|
||||
option_ex (SFIZZ_STATIC_DEPENDENCIES "Link dependencies statically" OFF)
|
||||
option_ex (SFIZZ_RELEASE_ASSERTS "Forced assertions in release builds" OFF)
|
||||
|
||||
|
|
@ -46,9 +47,6 @@ include (CheckIPO)
|
|||
# Dylib bunder for macOS
|
||||
include (BundleDylibs)
|
||||
|
||||
# Add Abseil
|
||||
add_subdirectory (external/abseil-cpp EXCLUDE_FROM_ALL)
|
||||
|
||||
# Add the static library targets and sources
|
||||
add_subdirectory (src)
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,13 @@ if(APPLE)
|
|||
list(APPEND CMAKE_PREFIX_PATH /usr/local)
|
||||
endif()
|
||||
|
||||
# Add Abseil
|
||||
if(SFIZZ_USE_SYSTEM_ABSEIL)
|
||||
find_package(absl REQUIRED)
|
||||
else()
|
||||
add_subdirectory("external/abseil-cpp" EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
# The jsl utility library for C++
|
||||
add_library(sfizz_jsl INTERFACE)
|
||||
add_library(sfizz::jsl ALIAS sfizz_jsl)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue