Skip to content

Commit

Permalink
libmfu: add major, minor, patch version
Browse files Browse the repository at this point in the history
Added the major, minor, and patch version
to the compiled libmfu.so
The initial version is 0.0.0

Signed-off-by: Dalton Bohning <daltonx.bohning@intel.com>

Signed-off-by: Dalton Bohning <daltonx.bohning@intel.com>
  • Loading branch information
Dalton Bohning authored and daltonbohning committed Oct 1, 2020
1 parent fb5b43c commit 871d8f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 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
Expand Down Expand Up @@ -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>)
Expand Down

0 comments on commit 871d8f7

Please sign in to comment.