libmfu: add major, minor, patch version
Added the major, minor, and patch version
to the compiled libmfu.so
The initial version is 0.0.0
+# Version for the shared mfu library
+set(MFU_VERSION_MAJOR 0) # Incompatible API changes
+set(MFU_VERSION_MINOR 0) # Backwards-compatible functionality
+set(MFU_VERSION_PATCH 0) # Backwards-compatible fixes
+set(MFU_VERSION ${MFU_VERSION_MAJOR}.${MFU_VERSION_MINOR}.${MFU_VERSION_PATCH})
+
# todo re-asses if all of these must be *installed*
LIST(APPEND libmfu_install_headers
mfu.h
@@ -44,7 +50,7 @@ SET_TARGET_PROPERTIES(mfu_o PROPERTIES C_STANDARD 99)
ADD_LIBRARY(mfu SHARED $<TARGET_OBJECTS:mfu_o>)
TARGET_LINK_LIBRARIES(mfu LINK_PUBLIC ${MFU_EXTERNAL_LIBS})
-SET_TARGET_PROPERTIES(mfu PROPERTIES OUTPUT_NAME mfu CLEAN_DIRECT_OUTPUT 1)
+SET_TARGET_PROPERTIES(mfu PROPERTIES VERSION ${MFU_VERSION} OUTPUT_NAME mfu CLEAN_DIRECT_OUTPUT 1)
INSTALL(TARGETS mfu DESTINATION ${CMAKE_INSTALL_LIBDIR})
ADD_LIBRARY(mfu-static STATIC $<TARGET_OBJECTS:mfu_o>)
