patch-libmpcdec_CMakeLists_txt 1.2 KB

12345678910111213141516171819
  1. $OpenBSD: patch-libmpcdec_CMakeLists_txt,v 1.1.1.1 2012/05/24 18:25:56 shadchin Exp $
  2. --- libmpcdec/CMakeLists.txt.orig Sat Aug 21 21:55:01 2010
  3. +++ libmpcdec/CMakeLists.txt Fri Dec 2 01:18:52 2011
  4. @@ -1,7 +1,9 @@
  5. include_directories(${libmpc_SOURCE_DIR}/include)
  6. -if(SHARED)
  7. - add_library(mpcdec SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
  8. -else(SHARED)
  9. - add_library(mpcdec_static STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
  10. -endif(SHARED)
  11. +add_library(mpcdec_static STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
  12. +set_target_properties(mpcdec_static PROPERTIES OUTPUT_NAME mpcdec)
  13. +
  14. +add_library(mpcdec_shared SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
  15. +set_target_properties(mpcdec_shared PROPERTIES OUTPUT_NAME mpcdec)
  16. +
  17. +install(TARGETS mpcdec_static mpcdec_shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")