зеркало из https://github.com/microsoft/vcpkg.git
use CMake's autoexport
This commit is contained in:
Родитель
76ca4cb60e
Коммит
e6d1f16038
|
@ -1,10 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.8.0)
|
||||
project (libspeex C)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
message(FATAL_ERROR "This CMake buildsystem only supports static builds")
|
||||
endif()
|
||||
|
||||
set(COMMON_INCLUDES ${PROJECT_BINARY_DIR}/include)
|
||||
|
||||
option(USE_SSE "USE_SSE used Note: USE_SSE and FIXED_POINT are mutually exclusive." ON)
|
||||
|
@ -56,6 +52,7 @@ set(SRC
|
|||
"libspeex/vbr.c"
|
||||
"libspeex/vq.c"
|
||||
"libspeex/window.c"
|
||||
"win32/libspeex.def"
|
||||
)
|
||||
|
||||
add_library(libspeex ${SRC})
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
include(vcpkg_common_functions)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Speex doesn't support visibility on Win32 yet. Building static.")
|
||||
message(STATUS "See https://github.com/xiph/speex/blob/master/win32/config.h for more")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO xiph/speex
|
||||
|
|
Загрузка…
Ссылка в новой задаче