vcpkg/ports/live555/CMakeLists.txt

32 lines
915 B
CMake
Raw Normal View History

2018-02-24 15:00:39 +08:00
cmake_minimum_required(VERSION 3.5)
project(live555 C CXX)
2018-02-24 15:00:39 +08:00
include_directories(
BasicUsageEnvironment/include
groupsock/include
liveMedia/include
UsageEnvironment/include
)
if (NOT MSVC)
add_compile_options(-DSOCKLEN_T=socklen_t)
endif()
file(GLOB BASIC_USAGE_ENVIRONMENT_SRCS BasicUsageEnvironment/*.c BasicUsageEnvironment/*.cpp)
2018-02-24 15:00:39 +08:00
add_library(BasicUsageEnvironment ${BASIC_USAGE_ENVIRONMENT_SRCS})
file(GLOB GROUPSOCK_SRCS groupsock/*.c groupsock/*.cpp)
2018-02-24 15:00:39 +08:00
add_library(groupsock ${GROUPSOCK_SRCS})
file(GLOB LIVEMEDIA_SRCS liveMedia/*.c liveMedia/*.cpp)
2018-02-24 15:00:39 +08:00
add_library(liveMedia ${LIVEMEDIA_SRCS})
file(GLOB USAGE_ENVIRONMENT_SRCS UsageEnvironment/*.c UsageEnvironment/*.cpp)
add_library(UsageEnvironment ${USAGE_ENVIRONMENT_SRCS})
2018-02-24 15:00:39 +08:00
install(TARGETS groupsock BasicUsageEnvironment liveMedia UsageEnvironment
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)