1 # Create a library called "Hello" which includes the source file "hello.cxx".
2 # The extension is already found. Any number of sources could be listed here.
25 set_target_properties (multihashlib PROPERTIES OUTPUT_NAME "multihash")
27 # Before making a release, the LTVERSION string should be modified.
28 # The string is of the form CURRENT:REVISION:AGE.
31 # The most recent interface number that this library implements.
34 # The implementation number that this library implements.
37 # The difference between the newest and oldest interfaces that this
38 # library implements. In other works, the library implements all the
39 # interface numbers in the range from number 'CURRENT - AGE' to
44 # - If interfaces have been changed or added, but binary compatibility has
45 # been preserved, change to C+1:0:A+1
47 # - If binary compatibility has been broken (eg removed or changed
48 # interfaces) change to C+1:0:0
50 # - If the interface is the same as the previous version, change to C:R+1:A
52 set_target_properties (multihashlib PROPERTIES SOVERSION 1.0.0)
55 #get_target_property(libhash_type multihashlib TYPE)
57 if (libhash_type STREQUAL "SHARED")
58 # MESSAGE ("Building libmultihash DLL")
59 ADD_DEFINITIONS (-DMULTIHASH_BUILD_DLL)
61 set_target_properties (multihashlib PROPERTIES DEFINE_SYMBOL MULTIHASH_EXPORTS)
66 #ARCHIVE DESTINATION lib
68 endif (libhash_type STREQUAL "SHARED")
70 # Install stuff, only if a shared library is being built
71 if (libhash_type STREQUAL "SHARED")
74 LIBRARY DESTINATION lib
75 ARCHIVE DESTINATION lib/static
77 endif (libhash_type STREQUAL "SHARED")