Ignore:
Timestamp:
10/21/13 23:34:18 (11 years ago)
Author:
r2d
Message:

libmpcdec : added install and soversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/CMakeLists.txt

    r467 r482  
     1SET(mpcdec_VERSION_MAJOR 7)
     2SET(mpcdec_VERSION_MINOR 0)
     3SET(mpcdec_VERSION_PATCH 1)
     4
     5set(mpcdec_VERSION ${mpcdec_VERSION_MAJOR}.${mpcdec_VERSION_MINOR}.${mpcdec_VERSION_PATCH})
     6
    17include_directories(${libmpc_SOURCE_DIR}/include)
     8install(FILES
     9        ${libmpc_SOURCE_DIR}/include/mpc/mpcdec.h
     10        ${libmpc_SOURCE_DIR}/include/mpc/reader.h
     11        ${libmpc_SOURCE_DIR}/include/mpc/streaminfo.h
     12        ${libmpc_SOURCE_DIR}/include/mpc/mpc_types.h
     13        DESTINATION include/mpc COMPONENT headers)
     14
    215if(SHARED)
    316  add_library(mpcdec SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
     17  set_target_properties(mpcdec PROPERTIES VERSION ${mpcdec_VERSION} SOVERSION ${mpcdec_VERSION_MAJOR})
     18  install(TARGETS mpcdec LIBRARY DESTINATION "lib" COMPONENT libraries)
    419else(SHARED)
    520  add_library(mpcdec_static STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
     21  install(TARGETS mpcdec_static ARCHIVE DESTINATION "lib/static" COMPONENT libraries)
    622endif(SHARED)
    723
Note: See TracChangeset for help on using the changeset viewer.