diff --git a/CMakeLists.txt b/CMakeLists.txt index 88e6880..1f2f3bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,19 +9,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/CMakeModules) include(FindLibraries) - -# -# Set the project's version -set(LIBWEBRTC_MAJOR_VERSION 0) -set(LIBWEBRTC_MINOR_VERSION 0) -set(LIBWEBRTC_PATCH_VERSION 1) -set(LIBWEBRTC_BUILD_VERSION -rc.4) -set(LIBWEBRTC_WEBRTC_REVISION ae2551232b5249e38298a50f2d9a64d3c862db00) - -set(LIBWEBRTC_API_VERSION - "${LIBWEBRTC_MAJOR_VERSION}.${LIBWEBRTC_MINOR_VERSION}.${LIBWEBRTC_PATCH_VERSION}") -set(LIBWEBRTC_VERSION - ${LIBWEBRTC_API_VERSION}${LIBWEBRTC_BUILD_VERSION}) +include(Version) # # Options, flags diff --git a/CMakeModules/Version.cmake b/CMakeModules/Version.cmake new file mode 100644 index 0000000..562689a --- /dev/null +++ b/CMakeModules/Version.cmake @@ -0,0 +1,13 @@ +# +# Set the project's version + +set(LIBWEBRTC_MAJOR_VERSION 0) +set(LIBWEBRTC_MINOR_VERSION 0) +set(LIBWEBRTC_PATCH_VERSION 1) +set(LIBWEBRTC_BUILD_VERSION -rc.4) +set(LIBWEBRTC_WEBRTC_REVISION ae2551232b5249e38298a50f2d9a64d3c862db00) + +set(LIBWEBRTC_API_VERSION + "${LIBWEBRTC_MAJOR_VERSION}.${LIBWEBRTC_MINOR_VERSION}.${LIBWEBRTC_PATCH_VERSION}") +set(LIBWEBRTC_VERSION + ${LIBWEBRTC_API_VERSION}${LIBWEBRTC_BUILD_VERSION}) \ No newline at end of file