1
0

Config.cmake.in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. get_filename_component(_mp3lame_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
  2. get_filename_component(_mp3lame_root "${_mp3lame_root}" PATH)
  3. get_filename_component(_mp3lame_root "${_mp3lame_root}" PATH)
  4. set(_mp3lame_rel_lib "${_mp3lame_root}/lib/@MP3LAME_LIB@")
  5. set(_mp3lame_dbg_lib "${_mp3lame_root}/debug/lib/@MP3LAME_LIB@")
  6. if (EXISTS "${_mp3lame_rel_lib}" OR EXISTS "${_mp3lame_dbg_lib}")
  7. add_library(mp3lame::mp3lame UNKNOWN IMPORTED)
  8. set_target_properties(mp3lame::mp3lame
  9. PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_mp3lame_root}/include")
  10. if (EXISTS "${_mp3lame_rel_lib}")
  11. set_target_properties(mp3lame::mp3lame
  12. PROPERTIES IMPORTED_LOCATION_RELEASE "${_mp3lame_rel_lib}")
  13. set_property(TARGET mp3lame::mp3lame APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
  14. endif()
  15. if (EXISTS "${_mp3lame_dbg_lib}")
  16. set_target_properties(mp3lame::mp3lame
  17. PROPERTIES IMPORTED_LOCATION_DEBUG "${_mp3lame_dbg_lib}")
  18. set_property(TARGET mp3lame::mp3lame APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
  19. endif()
  20. set(_mp3lame_mpghip_rel_lib "${_mp3lame_root}/lib/libmpghip-static.lib")
  21. set(_mp3lame_mpghip_dbg_lib "${_mp3lame_root}/debug/lib/libmpghip-static.lib")
  22. if (EXISTS "${_mp3lame_mpghip_rel_lib}" OR EXISTS "${_mp3lame_mpghip_dbg_lib}")
  23. add_library(mp3lame::mpghip UNKNOWN IMPORTED)
  24. if (EXISTS "${_mp3lame_rel_lib}")
  25. set_target_properties(mp3lame::mpghip
  26. PROPERTIES IMPORTED_LOCATION_RELEASE "${_mp3lame_mpghip_rel_lib}")
  27. set_property(TARGET mp3lame::mpghip APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
  28. endif()
  29. if (EXISTS "${_mp3lame_dbg_lib}")
  30. set_target_properties(mp3lame::mpghip
  31. PROPERTIES IMPORTED_LOCATION_DEBUG "${_mp3lame_mpghip_dbg_lib}")
  32. set_property(TARGET mp3lame::mpghip APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
  33. endif()
  34. set_target_properties(mp3lame::mp3lame PROPERTIES INTERFACE_LINK_LIBRARIES mp3lame::mpghip)
  35. endif()
  36. unset(_mp3lame_mpghip_rel_lib)
  37. unset(_mp3lame_mpghip_dbg_lib)
  38. else()
  39. set(mp3lame_FOUND FALSE)
  40. endif()
  41. unset(_mp3lame_rel_lib)
  42. unset(_mp3lame_dbg_lib)
  43. unset(_mp3lame_root)