assimp-config-version.cmake.in 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Open Asset Import Library (assimp)
  2. # ----------------------------------------------------------------------
  3. # Copyright (c) 2006-2020, assimp team
  4. # All rights reserved.
  5. #
  6. # Redistribution and use of this software in source and binary forms,
  7. # with or without modification, are permitted provided that the
  8. # following conditions are met:
  9. #
  10. # * Redistributions of source code must retain the above
  11. # copyright notice, this list of conditions and the
  12. # following disclaimer.
  13. #
  14. # * Redistributions in binary form must reproduce the above
  15. # copyright notice, this list of conditions and the
  16. # following disclaimer in the documentation and/or other
  17. # materials provided with the distribution.
  18. #
  19. # * Neither the name of the assimp team, nor the names of its
  20. # contributors may be used to endorse or promote products
  21. # derived from this software without specific prior
  22. # written permission of the assimp team.
  23. #
  24. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. #----------------------------------------------------------------------
  36. set( PACKAGE_VERSION "@ASSIMP_VERSION@" )
  37. if( "${PACKAGE_FIND_VERSION}" VERSION_EQUAL "@ASSIMP_VERSION@")
  38. set(PACKAGE_VERSION_EXACT 1)
  39. endif()
  40. if( "${PACKAGE_FIND_VERSION_MAJOR}.${PACKAGE_FIND_VERSION_MINOR}" EQUAL "@ASSIMP_VERSION@" )
  41. set(PACKAGE_VERSION_COMPATIBLE 1)
  42. elseif( "${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@ASSIMP_VERSION_MAJOR@" )
  43. # for now backward compatible if minor version is less
  44. if( ${PACKAGE_FIND_VERSION_MINOR} LESS @ASSIMP_VERSION_MINOR@ )
  45. set(PACKAGE_VERSION_COMPATIBLE 1)
  46. endif()
  47. endif()
  48. set( ASSIMP_STATIC_LIB "@ASSIMP_BUILD_STATIC_LIB@")