diff --git a/CMakeModules/Options.cmake b/CMakeModules/Options.cmake index 8537e21..d0f19a5 100644 --- a/CMakeModules/Options.cmake +++ b/CMakeModules/Options.cmake @@ -19,6 +19,10 @@ set(INSTALL_CMAKE_DIR lib/cmake/LibWebRTC CACHE PATH "Installation directory for if (UNIX) set(INSTALL_PKGCONFIG_DIR lib/pkgconfig CACHE PATH "Installation directory for pkg-config script") + if (NOT APPLE) + option(BUILD_DEB_PACKAGE "Build Debian .deb package" OFF) + option(BUILD_RPM_PACKAGE "Build Red Hat .rpm package" OFF) + endif (NOT APPLE) endif (UNIX) # diff --git a/README.md b/README.md index a57a14d..51935d9 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,14 @@ The library will be compiled and usable on the same host's platform and architecture. Here are some CMake flags which could be useful if you need to perform cross-compiling. +- **BUILD_DEB_PACKAGE** + + Generate Debian package, defaults to OFF, available under Linux only. + +- **BUILD_RPM_PACKAGE** + + Generate Red Hat package, defaults to OFF, available under Linux only. + - **BUILD_TESTS** Build WebRTC tests. (not supported yet)