Blob Blame History Raw
diff -ruN ydotool-787fd2549dc0972895a94e4b0964389296608922-orig/CMakeLists.txt ydotool-787fd2549dc0972895a94e4b0964389296608922/CMakeLists.txt
--- ydotool-787fd2549dc0972895a94e4b0964389296608922-orig/CMakeLists.txt	2020-08-09 19:35:43.000000000 +1000
+++ ydotool-787fd2549dc0972895a94e4b0964389296608922/CMakeLists.txt	2020-08-15 12:12:12.786053240 +1000
@@ -2,11 +2,11 @@
 project(ydotool)
 
 set(CMAKE_CXX_STANDARD 14)
-set(PROJECT_VERSION "0.1.5")
+set(PROJECT_VERSION "0.1.9")
 set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
 set(CPACK_PACKAGE_VERSION_MAJOR "0")
 set(CPACK_PACKAGE_VERSION_MINOR "1")
-set(CPACK_PACKAGE_VERSION_PATCH "5")
+set(CPACK_PACKAGE_VERSION_PATCH "9")
 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Generic Linux command-line automation tool (no X!)")
 set(CPACK_PACKAGE_CONTACT "Reimu NotMoe <https://github.com/ReimuNotMoe>")
 set(CMAKE_PROJECT_HOMEPAGE_URL "https://github.com/ReimuNotMoe/ydotool")
@@ -17,6 +17,7 @@
 set(CPACK_DEBIAN_COMPRESSION_TYPE "xz")
 set(CPACK_GENERATOR "DEB;RPM;TXZ")
 set(CPACK_SOURCE_GENERATOR "DEB;RPM;TXZ")
+set(STATIC_BUILD "no")
 include(CPack)
 
 include(GNUInstallDirs)
@@ -53,6 +54,8 @@
 if (NOT DEFINED DYNAMIC_BUILD OR (${DYNAMIC_BUILD}))
     add_library(ydotool_library SHARED ${SOURCE_FILES_LIBRARY})
     set_target_properties(ydotool_library PROPERTIES OUTPUT_NAME ydotool)
+    set_target_properties(ydotool_library PROPERTIES VERSION ${PROJECT_VERSION})
+    set_target_properties(ydotool_library PROPERTIES SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR})
     target_link_libraries(ydotool_library dl boost_program_options uInputPlus evdevPlus)
 
     add_executable(ydotoold ${SOURCE_FILES_DAEMON})