uwac: enable library versioning
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Thu, 25 Feb 2016 22:46:56 +0000 (23:46 +0100)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Thu, 25 Feb 2016 22:46:56 +0000 (23:46 +0100)
uwac/CMakeLists.txt
uwac/include/CMakeLists.txt
uwac/libuwac/CMakeLists.txt

index cbfecb8..dc8c9f0 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+# Soname versioning
+set(UWAC_VERSION_MAJOR "0")
+set(UWAC_VERSION_MINOR "0")
+set(UWAC_VERSION_REVISION "1")
+set(UWAC_VERSION "${UWAC_VERSION_MAJOR}.${UWAC_VERSION_MINOR}.${UWAC_VERSION_REVISION}")
+set(UWAC_VERSION_FULL "${UWAC_VERSION}")
+set(UWAC_API_VERSION "${UWAC_VERSION_MAJOR}")
+
 add_subdirectory(include)
 add_subdirectory(libuwac)
-
index b6e7129..6858728 100644 (file)
@@ -16,5 +16,4 @@
 # limitations under the License.
 
 file(GLOB UWAC_HEADERS "uwac/*.h")
-install(FILES ${UWAC_HEADERS} DESTINATION include/uwac COMPONENT headers)
-
+install(FILES ${UWAC_HEADERS} DESTINATION include/uwac${UWAC_API_VERSION}/uwac COMPONENT headers)
index 49a6634..4de9325 100644 (file)
@@ -65,12 +65,12 @@ add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
 
 
 if (WITH_LIBRARY_VERSIONING)
-       #set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${UWAC_VERSION} SOVERSION ${UWAC_API_VERSION})
+       set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${UWAC_VERSION} SOVERSION ${UWAC_API_VERSION})
 endif()
 
-target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} ${WAYLAND_LIBS} ${XKBCOMMON_LIBS})
+target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} ${WAYLAND_LIBS} ${XKBCOMMON_LIBS} freerdp)
 
-install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT Uwac)
+install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT uwac)
 
 
 set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "uwac")