mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 16:19:01 +08:00
d0920bbf7a
* [live555] Fix install head failed * update version * update live555 to the latest version * update version
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(live555 C CXX)
|
|
|
|
include_directories(
|
|
BasicUsageEnvironment/include
|
|
groupsock/include
|
|
liveMedia/include
|
|
UsageEnvironment/include
|
|
)
|
|
|
|
if (WIN32)
|
|
add_definitions(-DNO_GETIFADDRS)
|
|
endif(WIN32)
|
|
|
|
if (NOT MSVC)
|
|
add_compile_options(-DSOCKLEN_T=socklen_t)
|
|
endif()
|
|
|
|
file(GLOB BASIC_USAGE_ENVIRONMENT_SRCS BasicUsageEnvironment/*.c BasicUsageEnvironment/*.cpp)
|
|
add_library(BasicUsageEnvironment ${BASIC_USAGE_ENVIRONMENT_SRCS})
|
|
|
|
file(GLOB GROUPSOCK_SRCS groupsock/*.c groupsock/*.cpp)
|
|
add_library(groupsock ${GROUPSOCK_SRCS})
|
|
|
|
file(GLOB LIVEMEDIA_SRCS liveMedia/*.c liveMedia/*.cpp)
|
|
add_library(liveMedia ${LIVEMEDIA_SRCS})
|
|
find_package(OpenSSL REQUIRED)
|
|
target_include_directories(liveMedia PRIVATE "${OPENSSL_INCLUDE_DIR}")
|
|
|
|
file(GLOB USAGE_ENVIRONMENT_SRCS UsageEnvironment/*.c UsageEnvironment/*.cpp)
|
|
add_library(UsageEnvironment ${USAGE_ENVIRONMENT_SRCS})
|
|
|
|
install(TARGETS groupsock BasicUsageEnvironment liveMedia UsageEnvironment
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|