Changeset 491
- Timestamp:
- 02/15/16 00:07:10 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/CMakeLists.txt
r482 r491 5 5 set(mpcdec_VERSION ${mpcdec_VERSION_MAJOR}.${mpcdec_VERSION_MINOR}.${mpcdec_VERSION_PATCH}) 6 6 7 include_directories(${libmpc_SOURCE_DIR}/include)8 7 install(FILES 9 8 ${libmpc_SOURCE_DIR}/include/mpc/mpcdec.h … … 13 12 DESTINATION include/mpc COMPONENT headers) 14 13 14 include_directories(${libmpc_SOURCE_DIR}/include) 15 15 if(SHARED) 16 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) 16 add_library(mpcdec_shared 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_shared PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1 VERSION ${mpcdec_VERSION} SOVERSION ${mpcdec_VERSION_MAJOR}) 18 install(TARGETS mpcdec_shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}" COMPONENT libraries) 19 target_link_libraries(mpcdec_shared m) 19 20 else(SHARED) 20 21 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) 22 set_target_properties(mpcdec_static PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1) 23 install(TARGETS mpcdec_static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}" COMPONENT libraries) 24 target_link_libraries(mpcdec_static m) 22 25 endif(SHARED) 23 26
Note: See TracChangeset
for help on using the changeset viewer.