2008-12-02 18:42:58 +08:00
|
|
|
# Locate Collada
|
|
|
|
# This module defines:
|
2007-05-04 22:25:02 +08:00
|
|
|
# COLLADA_INCLUDE_DIR, where to find the headers
|
|
|
|
#
|
2008-12-02 18:42:58 +08:00
|
|
|
# COLLADA_LIBRARY, COLLADA_LIBRARY_DEBUG
|
|
|
|
# COLLADA_FOUND, if false, do not try to link to Collada dynamically
|
|
|
|
#
|
|
|
|
# COLLADA_LIBRARY_STATIC, COLLADA_LIBRARY_STATIC_DEBUG
|
|
|
|
# COLLADA_STATIC_FOUND, if false, do not try to link to Collada statically
|
|
|
|
#
|
2007-05-04 22:25:02 +08:00
|
|
|
# $COLLADA_DIR is an environment variable that would
|
|
|
|
# correspond to the ./configure --prefix=$COLLADA_DIR
|
|
|
|
#
|
2014-12-23 20:10:03 +08:00
|
|
|
# Created by Robert Osfield.
|
2007-05-04 22:25:02 +08:00
|
|
|
|
2010-09-09 18:44:11 +08:00
|
|
|
|
|
|
|
# Check if COLLADA_DIR is set, otherwise use ACTUAL_3DPARTY_DIR:
|
|
|
|
SET( COLLADA_ENV_VAR_AVAILABLE $ENV{COLLADA_DIR} )
|
|
|
|
IF ( COLLADA_ENV_VAR_AVAILABLE )
|
|
|
|
SET(COLLADA_DOM_ROOT "$ENV{COLLADA_DIR}/dom" CACHE PATH "Location of Collada DOM directory" FORCE)
|
2014-12-23 20:10:03 +08:00
|
|
|
ELSE ()
|
2010-09-09 18:44:11 +08:00
|
|
|
SET(COLLADA_DOM_ROOT "${ACTUAL_3DPARTY_DIR}/include/1.4/dom" CACHE PATH "Location of Collada DOM directory" FORCE)
|
2014-12-23 20:10:03 +08:00
|
|
|
ENDIF()
|
2010-09-09 18:44:11 +08:00
|
|
|
|
|
|
|
|
2009-03-24 00:11:41 +08:00
|
|
|
IF(APPLE)
|
|
|
|
SET(COLLADA_BUILDNAME "mac")
|
2018-07-23 17:37:40 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
2009-03-24 00:11:41 +08:00
|
|
|
ELSEIF(MINGW)
|
|
|
|
SET(COLLADA_BUILDNAME "mingw")
|
2018-07-23 17:37:40 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
2019-03-26 13:52:09 +08:00
|
|
|
ELSEIF((MSVC_VERSION GREATER 1910) OR (MSVC_VERSION EQUAL 1910))
|
2016-10-06 18:34:53 +08:00
|
|
|
SET(COLLADA_BUILDNAME "vc14")
|
2019-03-23 20:14:24 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME "vc141")
|
|
|
|
ELSEIF(MSVC_VERSION EQUAL 1900)
|
|
|
|
SET(COLLADA_BUILDNAME "vc14")
|
|
|
|
SET(COLLADA_BOOST_BUILDNAME "vc140")
|
2017-05-15 21:53:27 +08:00
|
|
|
ELSEIF(MSVC_VERSION EQUAL 1800)
|
2013-07-23 13:25:39 +08:00
|
|
|
SET(COLLADA_BUILDNAME "vc12")
|
2017-05-15 21:53:27 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME "vc120")
|
|
|
|
ELSEIF(MSVC_VERSION EQUAL 1700)
|
2013-07-23 13:25:39 +08:00
|
|
|
SET(COLLADA_BUILDNAME "vc11")
|
2017-05-15 21:53:27 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME "vc110")
|
|
|
|
ELSEIF(MSVC_VERSION EQUAL 1600)
|
2012-02-07 19:43:42 +08:00
|
|
|
SET(COLLADA_BUILDNAME "vc10")
|
2017-05-15 21:53:27 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME "vc100")
|
|
|
|
ELSEIF(MSVC_VERSION EQUAL 1500)
|
2009-03-24 00:11:41 +08:00
|
|
|
SET(COLLADA_BUILDNAME "vc9")
|
2017-05-15 21:53:27 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME "vc90")
|
|
|
|
ELSEIF(MSVC_VERSION EQUAL 1400)
|
2009-03-24 00:11:41 +08:00
|
|
|
SET(COLLADA_BUILDNAME "vc8")
|
2017-05-15 21:53:27 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME "vc80")
|
|
|
|
ELSE()
|
2011-03-09 19:15:10 +08:00
|
|
|
SET(COLLADA_BUILDNAME "linux")
|
2017-05-15 21:53:27 +08:00
|
|
|
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
IF(${CMAKE_VS_PLATFORM_TOOLSET})
|
|
|
|
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
|
|
|
ENDIF()
|
2009-03-24 00:11:41 +08:00
|
|
|
|
|
|
|
|
2007-05-04 22:25:02 +08:00
|
|
|
FIND_PATH(COLLADA_INCLUDE_DIR dae.h
|
2018-07-23 17:37:40 +08:00
|
|
|
PATHS
|
2009-02-10 19:44:50 +08:00
|
|
|
${COLLADA_DOM_ROOT}/include
|
2007-05-04 22:25:02 +08:00
|
|
|
$ENV{COLLADA_DIR}/include
|
|
|
|
$ENV{COLLADA_DIR}
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
2010-09-17 23:41:55 +08:00
|
|
|
/opt/local/Library/Frameworks #macports
|
2007-05-04 22:25:02 +08:00
|
|
|
/usr/local/include
|
2008-05-08 20:36:07 +08:00
|
|
|
/usr/include/
|
2007-05-04 22:25:02 +08:00
|
|
|
/sw/include # Fink
|
|
|
|
/opt/local/include # DarwinPorts
|
|
|
|
/opt/csw/include # Blastwave
|
|
|
|
/opt/include
|
|
|
|
/usr/freeware/include
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/include
|
2018-07-23 17:37:40 +08:00
|
|
|
PATH_SUFFIXES
|
|
|
|
colladadom
|
|
|
|
collada-dom
|
|
|
|
collada-dom2.5
|
|
|
|
collada-dom2.4
|
|
|
|
collada-dom2.2
|
2007-05-04 22:25:02 +08:00
|
|
|
)
|
|
|
|
|
2014-12-23 20:10:03 +08:00
|
|
|
FIND_LIBRARY(COLLADA_DYNAMIC_LIBRARY
|
2018-03-15 23:58:46 +08:00
|
|
|
NAMES collada_dom collada14dom Collada14Dom libcollada14dom21 libcollada14dom22 collada-dom2.5-dp collada-dom2.5-dp-${COLLADA_BOOST_BUILDNAME}-mt collada-dom2.4-dp collada-dom2.4-dp-${COLLADA_BOOST_BUILDNAME}-mt
|
2007-05-04 22:25:02 +08:00
|
|
|
PATHS
|
2009-03-24 00:11:41 +08:00
|
|
|
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4
|
2014-12-23 20:10:03 +08:00
|
|
|
${COLLADA_DOM_ROOT}
|
2009-03-24 00:11:41 +08:00
|
|
|
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4
|
2008-11-26 20:07:03 +08:00
|
|
|
$ENV{COLLADA_DIR}/lib
|
|
|
|
$ENV{COLLADA_DIR}/lib-dbg
|
|
|
|
$ENV{COLLADA_DIR}
|
|
|
|
~/Library/Frameworks
|
2014-12-23 20:10:03 +08:00
|
|
|
/Library/Frameworks
|
2010-09-17 23:41:55 +08:00
|
|
|
/opt/local/Library/Frameworks #macports
|
2008-11-26 20:07:03 +08:00
|
|
|
/usr/local/lib
|
|
|
|
/usr/local/lib64
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib64
|
|
|
|
/sw/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/opt/csw/lib
|
|
|
|
/opt/lib
|
|
|
|
/usr/freeware/lib64
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2008-11-26 20:07:03 +08:00
|
|
|
)
|
|
|
|
|
2014-12-23 20:10:03 +08:00
|
|
|
FIND_LIBRARY(COLLADA_DYNAMIC_LIBRARY_DEBUG
|
2018-03-15 23:58:46 +08:00
|
|
|
NAMES collada_dom-d collada14dom-d Collada14Dom-d libcollada14dom21-d libcollada14dom22-d collada-dom2.5-dp-d collada-dom2.5-dp-${COLLADA_BOOST_BUILDNAME}-mt-d collada-dom2.4-dp-d collada-dom2.4-dp-${COLLADA_BOOST_BUILDNAME}-mt-d
|
2008-11-26 20:07:03 +08:00
|
|
|
PATHS
|
2009-03-24 00:11:41 +08:00
|
|
|
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4-d
|
2014-12-23 20:10:03 +08:00
|
|
|
${COLLADA_DOM_ROOT}
|
2009-03-24 00:11:41 +08:00
|
|
|
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4-d
|
2007-05-04 22:25:02 +08:00
|
|
|
$ENV{COLLADA_DIR}/lib
|
|
|
|
$ENV{COLLADA_DIR}/lib-dbg
|
|
|
|
$ENV{COLLADA_DIR}
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
2010-09-17 23:41:55 +08:00
|
|
|
/opt/local/Library/Frameworks #macports
|
2007-05-04 22:25:02 +08:00
|
|
|
/usr/local/lib
|
2008-05-08 20:36:07 +08:00
|
|
|
/usr/local/lib64
|
2007-05-04 22:25:02 +08:00
|
|
|
/usr/lib
|
2008-05-08 20:36:07 +08:00
|
|
|
/usr/lib64
|
2007-05-04 22:25:02 +08:00
|
|
|
/sw/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/opt/csw/lib
|
|
|
|
/opt/lib
|
|
|
|
/usr/freeware/lib64
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2007-05-04 22:25:02 +08:00
|
|
|
)
|
|
|
|
|
2014-12-23 20:10:03 +08:00
|
|
|
FIND_LIBRARY(COLLADA_STATIC_LIBRARY
|
2010-12-23 18:07:27 +08:00
|
|
|
NAMES libcollada14dom21-s libcollada14dom22-s libcollada14dom.a
|
2008-12-02 18:42:58 +08:00
|
|
|
PATHS
|
2009-03-24 00:11:41 +08:00
|
|
|
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4
|
|
|
|
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4
|
2008-12-02 18:42:58 +08:00
|
|
|
$ENV{COLLADA_DIR}/lib
|
|
|
|
$ENV{COLLADA_DIR}/lib-dbg
|
|
|
|
$ENV{COLLADA_DIR}
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
2010-09-17 23:41:55 +08:00
|
|
|
/opt/local/Library/Frameworks #macports
|
2008-12-02 18:42:58 +08:00
|
|
|
/usr/local/lib
|
|
|
|
/usr/local/lib64
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib64
|
|
|
|
/sw/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/opt/csw/lib
|
|
|
|
/opt/lib
|
|
|
|
/usr/freeware/lib64
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2008-12-02 18:42:58 +08:00
|
|
|
)
|
2007-05-04 22:25:02 +08:00
|
|
|
|
2014-12-23 20:10:03 +08:00
|
|
|
FIND_LIBRARY(COLLADA_STATIC_LIBRARY_DEBUG
|
2010-12-23 18:07:27 +08:00
|
|
|
NAMES collada_dom-sd collada14dom-sd libcollada14dom21-sd libcollada14dom22-sd libcollada14dom-d.a
|
2008-12-02 18:42:58 +08:00
|
|
|
PATHS
|
2009-03-24 00:11:41 +08:00
|
|
|
${COLLADA_DOM_ROOT}/build/${COLLADA_BUILDNAME}-1.4-d
|
|
|
|
$ENV{COLLADA_DIR}/build/${COLLADA_BUILDNAME}-1.4-d
|
2008-12-02 18:42:58 +08:00
|
|
|
$ENV{COLLADA_DIR}/lib
|
|
|
|
$ENV{COLLADA_DIR}/lib-dbg
|
|
|
|
$ENV{COLLADA_DIR}
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
2010-09-17 23:41:55 +08:00
|
|
|
/opt/local/Library/Frameworks #macports
|
2008-12-02 18:42:58 +08:00
|
|
|
/usr/local/lib
|
|
|
|
/usr/local/lib64
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib64
|
|
|
|
/sw/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/opt/csw/lib
|
|
|
|
/opt/lib
|
|
|
|
/usr/freeware/lib64
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2008-12-02 18:42:58 +08:00
|
|
|
)
|
2007-05-04 22:25:02 +08:00
|
|
|
|
2009-02-10 19:44:50 +08:00
|
|
|
# find extra libraries that the static linking requires
|
|
|
|
|
|
|
|
FIND_PACKAGE(LibXml2)
|
|
|
|
IF (LIBXML2_FOUND)
|
2010-09-09 18:44:11 +08:00
|
|
|
SET(COLLADA_LIBXML_LIBRARY "${LIBXML2_LIBRARIES}" CACHE FILEPATH "" FORCE)
|
2009-02-10 19:44:50 +08:00
|
|
|
ELSE(LIBXML2_FOUND)
|
2009-02-11 03:25:50 +08:00
|
|
|
IF(WIN32)
|
|
|
|
FIND_LIBRARY(COLLADA_LIBXML_LIBRARY
|
|
|
|
NAMES libxml2
|
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/libxml2/win32/lib
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/libxml2/mingw/lib
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-02-11 03:25:50 +08:00
|
|
|
)
|
|
|
|
ENDIF(WIN32)
|
2009-02-10 19:44:50 +08:00
|
|
|
ENDIF(LIBXML2_FOUND)
|
2014-12-23 20:10:03 +08:00
|
|
|
|
2009-02-10 19:44:50 +08:00
|
|
|
FIND_PACKAGE(ZLIB)
|
|
|
|
IF (ZLIB_FOUND)
|
2016-10-06 18:34:53 +08:00
|
|
|
IF (ZLIB_LIBRARY_RELEASE)
|
|
|
|
SET(COLLADA_ZLIB_LIBRARY "${ZLIB_LIBRARY_RELEASE}" CACHE FILEPATH "" FORCE)
|
|
|
|
ELSE(ZLIB_LIBRARY_RELEASE)
|
|
|
|
SET(COLLADA_ZLIB_LIBRARY "${ZLIB_LIBRARY}" CACHE FILEPATH "" FORCE)
|
|
|
|
ENDIF(ZLIB_LIBRARY_RELEASE)
|
|
|
|
IF (ZLIB_LIBRARY_DEBUG)
|
|
|
|
SET(COLLADA_ZLIB_LIBRARY_DEBUG "${ZLIB_LIBRARY_DEBUG}" CACHE FILEPATH "" FORCE)
|
|
|
|
ELSE(ZLIB_LIBRARY_DEBUG)
|
|
|
|
SET(COLLADA_ZLIB_LIBRARY_DEBUG "${COLLADA_ZLIB_LIBRARY}" CACHE FILEPATH "" FORCE)
|
|
|
|
ENDIF(ZLIB_LIBRARY_DEBUG)
|
2009-02-10 19:44:50 +08:00
|
|
|
ELSE(ZLIB_FOUND)
|
2009-02-11 03:25:50 +08:00
|
|
|
IF(WIN32)
|
|
|
|
FIND_LIBRARY(COLLADA_ZLIB_LIBRARY
|
|
|
|
NAMES zlib
|
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/libxml2/win32/lib
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/libxml2/mingw/lib
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-02-11 03:25:50 +08:00
|
|
|
)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
ENDIF(ZLIB_FOUND)
|
|
|
|
|
2009-06-12 17:41:10 +08:00
|
|
|
FIND_LIBRARY(COLLADA_PCRECPP_LIBRARY
|
|
|
|
NAMES pcrecpp
|
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_PCRECPP_LIBRARY_DEBUG
|
2010-09-09 18:44:11 +08:00
|
|
|
NAMES pcrecpp-d pcrecppd
|
2009-06-12 17:41:10 +08:00
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_PCRE_LIBRARY
|
|
|
|
NAMES pcre
|
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_PCRE_LIBRARY_DEBUG
|
2010-09-09 18:44:11 +08:00
|
|
|
NAMES pcre-d pcred
|
2009-06-12 17:41:10 +08:00
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mac
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/pcre/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_MINIZIP_LIBRARY
|
|
|
|
NAMES minizip
|
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/minizip/win32/lib
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/minizip/mac
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_MINIZIP_LIBRARY_DEBUG
|
2010-09-09 18:44:11 +08:00
|
|
|
NAMES minizip-d minizipD
|
2009-06-12 17:41:10 +08:00
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/minizip/win32/lib
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/minizip/mac
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_BOOST_FILESYSTEM_LIBRARY
|
2017-04-05 19:01:55 +08:00
|
|
|
NAMES libboost_filesystem boost_filesystem boost_filesystem-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-1_63
|
2009-06-12 17:41:10 +08:00
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_BOOST_FILESYSTEM_LIBRARY_DEBUG
|
2017-04-05 19:01:55 +08:00
|
|
|
NAMES libboost_filesystem-d boost_filesystem-d boost_filesystem-mt-d libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_filesystem-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63
|
2009-06-12 17:41:10 +08:00
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_BOOST_SYSTEM_LIBRARY
|
2017-04-05 19:01:55 +08:00
|
|
|
NAMES libboost_system boost_system boost_system-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-1_63
|
2009-06-12 17:41:10 +08:00
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_BOOST_SYSTEM_LIBRARY_DEBUG
|
2017-04-05 19:01:55 +08:00
|
|
|
NAMES libboost_system-d boost_system-d boost_system-mt-d libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_54 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_55 libboost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_58 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_62 boost_system-${COLLADA_BOOST_BUILDNAME}-mt-gd-1_63
|
2009-06-12 17:41:10 +08:00
|
|
|
PATHS
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/${COLLADA_BUILDNAME}
|
|
|
|
${COLLADA_DOM_ROOT}/external-libs/boost/lib/mingw
|
2010-09-09 18:44:11 +08:00
|
|
|
${ACTUAL_3DPARTY_DIR}/lib
|
2009-06-12 17:41:10 +08:00
|
|
|
)
|
2009-02-10 19:44:50 +08:00
|
|
|
|
|
|
|
|
2008-12-02 18:42:58 +08:00
|
|
|
SET(COLLADA_FOUND "NO")
|
|
|
|
IF(COLLADA_DYNAMIC_LIBRARY OR COLLADA_STATIC_LIBRARY)
|
|
|
|
IF (COLLADA_INCLUDE_DIR)
|
2014-12-23 20:10:03 +08:00
|
|
|
|
2008-12-02 18:42:58 +08:00
|
|
|
SET(COLLADA_FOUND "YES")
|
2014-12-23 20:10:03 +08:00
|
|
|
|
|
|
|
FIND_PATH(COLLADA_INCLUDE_DOMANY_DIR 1.4/dom/domAny.h
|
|
|
|
${COLLADA_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
IF (COLLADA_INCLUDE_DOMANY_DIR)
|
|
|
|
SET(COLLADA_DOM_2_4_OR_LATER TRUE)
|
|
|
|
ELSEIF()
|
|
|
|
SET(COLLADA_DOM_2_4_OR_LATER FALSE)
|
|
|
|
ENDIF()
|
|
|
|
|
2014-12-24 19:43:41 +08:00
|
|
|
ENDIF()
|
2014-12-23 20:10:03 +08:00
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|