130 lines
5.0 KiB
CMake
130 lines
5.0 KiB
CMake
#----------------------------------------------------------------
|
|
# Generated CMake target import file for configuration "Release".
|
|
#----------------------------------------------------------------
|
|
|
|
# Commands may need to know the format version.
|
|
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
|
|
set(ASSIMP_BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@)
|
|
|
|
get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
|
|
|
|
if ("${LIB64}" STREQUAL "TRUE")
|
|
set(LIBSUFFIX 64)
|
|
else()
|
|
set(LIBSUFFIX "")
|
|
endif()
|
|
|
|
if(MSVC)
|
|
if(MSVC_TOOLSET_VERSION)
|
|
set(MSVC_PREFIX "vc${MSVC_TOOLSET_VERSION}")
|
|
else()
|
|
if( MSVC70 OR MSVC71 )
|
|
set(MSVC_PREFIX "vc70")
|
|
elseif( MSVC80 )
|
|
set(MSVC_PREFIX "vc80")
|
|
elseif( MSVC90 )
|
|
set(MSVC_PREFIX "vc90")
|
|
elseif( MSVC10 )
|
|
set(MSVC_PREFIX "vc100")
|
|
elseif( MSVC11 )
|
|
set(MSVC_PREFIX "vc110")
|
|
elseif( MSVC12 )
|
|
set(MSVC_PREFIX "vc120")
|
|
elseif( MSVC_VERSION LESS 1910)
|
|
set(MSVC_PREFIX "vc140")
|
|
elseif( MSVC_VERSION LESS 1920)
|
|
set(MSVC_PREFIX "vc141")
|
|
elseif( MSVC_VERSION LESS 1930)
|
|
set(MSVC_PREFIX "vc142")
|
|
else()
|
|
set(MSVC_PREFIX "vc150")
|
|
endif()
|
|
endif()
|
|
set(ASSIMP_LIBRARY_SUFFIX "@ASSIMP_LIBRARY_SUFFIX@-${MSVC_PREFIX}-mt" CACHE STRING "the suffix for the assimp windows library" )
|
|
|
|
file(TO_NATIVE_PATH "${_IMPORT_PREFIX}" _IMPORT_PREFIX)
|
|
|
|
if(ASSIMP_BUILD_SHARED_LIBS)
|
|
set(sharedLibraryName "assimp${ASSIMP_LIBRARY_SUFFIX}@CMAKE_SHARED_LIBRARY_SUFFIX@")
|
|
set(importLibraryName "assimp${ASSIMP_LIBRARY_SUFFIX}@CMAKE_IMPORT_LIBRARY_SUFFIX@")
|
|
|
|
# Import target "assimp::assimp" for configuration "Release"
|
|
set_property(TARGET assimp::assimp APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
set_target_properties(assimp::assimp PROPERTIES
|
|
IMPORTED_IMPLIB_RELEASE "@CMAKE_INSTALL_FULL_LIBDIR@/${importLibraryName}"
|
|
IMPORTED_LOCATION_RELEASE "@CMAKE_INSTALL_FULL_BINDIR@/${sharedLibraryName}"
|
|
)
|
|
list(APPEND _IMPORT_CHECK_TARGETS assimp::assimp )
|
|
list(APPEND _IMPORT_CHECK_FILES_FOR_assimp::assimp "@CMAKE_INSTALL_FULL_LIBDIR@/${importLibraryName}")
|
|
list(APPEND _IMPORT_CHECK_FILES_FOR_assimp::assimp "@CMAKE_INSTALL_FULL_BINDIR@/${sharedLibraryName}" )
|
|
else()
|
|
set(staticLibraryName "assimp${ASSIMP_LIBRARY_SUFFIX}@CMAKE_STATIC_LIBRARY_SUFFIX@")
|
|
|
|
# Import target "assimp::assimp" for configuration "Release"
|
|
set_property(TARGET assimp::assimp APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
set_target_properties(assimp::assimp PROPERTIES
|
|
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/${staticLibraryName}"
|
|
)
|
|
list(APPEND _IMPORT_CHECK_TARGETS assimp::assimp )
|
|
list(APPEND _IMPORT_CHECK_FILES_FOR_assimp::assimp "@CMAKE_INSTALL_FULL_LIBDIR@/${staticLibraryName}")
|
|
endif()
|
|
|
|
else()
|
|
set(ASSIMP_LIBRARY_SUFFIX "@ASSIMP_LIBRARY_SUFFIX@" CACHE STRING "the suffix for the assimp libraries" )
|
|
if(ASSIMP_BUILD_SHARED_LIBS)
|
|
if(WIN32)
|
|
# Handle MinGW compiler.
|
|
set(sharedLibraryName "libassimp${ASSIMP_LIBRARY_SUFFIX}@CMAKE_DEBUG_POSTFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@@CMAKE_STATIC_LIBRARY_SUFFIX@")
|
|
elseif(APPLE)
|
|
set(sharedLibraryName "libassimp${ASSIMP_LIBRARY_SUFFIX}.@ASSIMP_VERSION_MAJOR@@CMAKE_SHARED_LIBRARY_SUFFIX@")
|
|
else()
|
|
set(sharedLibraryName "libassimp${ASSIMP_LIBRARY_SUFFIX}@CMAKE_SHARED_LIBRARY_SUFFIX@.@ASSIMP_VERSION_MAJOR@")
|
|
endif()
|
|
set_target_properties(assimp::assimp PROPERTIES
|
|
IMPORTED_SONAME_RELEASE "${sharedLibraryName}"
|
|
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib${LIBSUFFIX}/${sharedLibraryName}"
|
|
)
|
|
list(APPEND _IMPORT_CHECK_TARGETS assimp::assimp )
|
|
list(APPEND _IMPORT_CHECK_FILES_FOR_assimp::assimp "${_IMPORT_PREFIX}/lib${LIBSUFFIX}/${sharedLibraryName}" )
|
|
else()
|
|
set(staticLibraryName "libassimp${ASSIMP_LIBRARY_SUFFIX}@CMAKE_STATIC_LIBRARY_SUFFIX@")
|
|
set_target_properties(assimp::assimp PROPERTIES
|
|
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib${LIBSUFFIX}/${staticLibraryName}"
|
|
)
|
|
list(APPEND _IMPORT_CHECK_TARGETS assimp::assimp )
|
|
list(APPEND _IMPORT_CHECK_FILES_FOR_assimp::assimp "${_IMPORT_PREFIX}/lib${LIBSUFFIX}/${staticLibraryName}" )
|
|
endif()
|
|
endif()
|
|
|
|
# Commands beyond this point should not need to know the version.
|
|
set(CMAKE_IMPORT_FILE_VERSION)
|
|
|
|
get_filename_component(ASSIMP_ROOT_DIR "@CMAKE_INSTALL_PREFIX@" REALPATH)
|
|
|
|
set( ASSIMP_CXX_FLAGS ) # dynamically linked library
|
|
set( ASSIMP_LINK_FLAGS "" )
|
|
set( ASSIMP_LIBRARY_DIRS "${ASSIMP_ROOT_DIR}/@ASSIMP_LIB_INSTALL_DIR@")
|
|
set( ASSIMP_INCLUDE_DIRS "${ASSIMP_ROOT_DIR}/@ASSIMP_INCLUDE_INSTALL_DIR@")
|
|
if(ASSIMP_BUILD_SHARED_LIBS)
|
|
set( ASSIMP_LIBRARIES ${sharedLibraryName})
|
|
else()
|
|
set( ASSIMP_LIBRARIES ${staticLibraryName})
|
|
endif()
|
|
|
|
# for compatibility with pkg-config
|
|
set(ASSIMP_CFLAGS_OTHER "${ASSIMP_CXX_FLAGS}")
|
|
set(ASSIMP_LDFLAGS_OTHER "${ASSIMP_LINK_FLAGS}")
|
|
|
|
MARK_AS_ADVANCED(
|
|
ASSIMP_ROOT_DIR
|
|
ASSIMP_CXX_FLAGS
|
|
ASSIMP_LINK_FLAGS
|
|
ASSIMP_INCLUDE_DIRS
|
|
ASSIMP_LIBRARIES
|
|
ASSIMP_CFLAGS_OTHER
|
|
ASSIMP_LDFLAGS_OTHER
|
|
ASSIMP_LIBRARY_SUFFIX
|
|
ASSIMP_BUILD_SHARED_LIBS
|
|
)
|