Update hunter and utf8cpp inclusion
parent
bdcad5cd0a
commit
209a61d0e7
|
@ -44,8 +44,8 @@ option(ASSIMP_HUNTER_ENABLED "Enable Hunter package manager support" OFF)
|
||||||
IF(ASSIMP_HUNTER_ENABLED)
|
IF(ASSIMP_HUNTER_ENABLED)
|
||||||
include("cmake/HunterGate.cmake")
|
include("cmake/HunterGate.cmake")
|
||||||
HunterGate(
|
HunterGate(
|
||||||
URL "https://github.com/ruslo/hunter/archive/v0.23.176.tar.gz"
|
URL "https://github.com/cpp-pm/hunter/archive/v0.23.261.tar.gz"
|
||||||
SHA1 "2e9ae973d028660b735ac4c6142725ca36a0048a"
|
SHA1 "1540dad7b97c849784a09e8c452ba811c9f71ba2"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_definitions(-DASSIMP_USE_HUNTER)
|
add_definitions(-DASSIMP_USE_HUNTER)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
find_package(RapidJSON CONFIG REQUIRED)
|
find_package(RapidJSON CONFIG REQUIRED)
|
||||||
find_package(ZLIB CONFIG REQUIRED)
|
find_package(ZLIB CONFIG REQUIRED)
|
||||||
find_package(utf8 CONFIG REQUIRED)
|
find_package(utf8cpp CONFIG REQUIRED)
|
||||||
find_package(irrXML CONFIG REQUIRED)
|
find_package(irrXML CONFIG REQUIRED)
|
||||||
find_package(minizip CONFIG REQUIRED)
|
find_package(minizip CONFIG REQUIRED)
|
||||||
find_package(openddlparser CONFIG REQUIRED)
|
find_package(openddlparser CONFIG REQUIRED)
|
||||||
|
|
|
@ -43,7 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "MMDPmxParser.h"
|
#include "MMDPmxParser.h"
|
||||||
#include <assimp/StringUtils.h>
|
#include <assimp/StringUtils.h>
|
||||||
#ifdef ASSIMP_USE_HUNTER
|
#ifdef ASSIMP_USE_HUNTER
|
||||||
# include <utf8/utf8.h>
|
# include <utf8.h>
|
||||||
#else
|
#else
|
||||||
# include "../contrib/utf8cpp/source/utf8.h"
|
# include "../contrib/utf8cpp/source/utf8.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -59,7 +59,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <assimp/StreamReader.h>
|
#include <assimp/StreamReader.h>
|
||||||
#include <assimp/TinyFormatter.h>
|
#include <assimp/TinyFormatter.h>
|
||||||
#ifdef ASSIMP_USE_HUNTER
|
#ifdef ASSIMP_USE_HUNTER
|
||||||
#include <utf8/utf8.h>
|
#include <utf8.h>
|
||||||
#else
|
#else
|
||||||
//# include "../contrib/ConvertUTF/ConvertUTF.h"
|
//# include "../contrib/ConvertUTF/ConvertUTF.h"
|
||||||
#include "../contrib/utf8cpp/source/utf8.h"
|
#include "../contrib/utf8cpp/source/utf8.h"
|
||||||
|
|
|
@ -46,7 +46,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "STEPFileEncoding.h"
|
#include "STEPFileEncoding.h"
|
||||||
#include <assimp/fast_atof.h>
|
#include <assimp/fast_atof.h>
|
||||||
#ifdef ASSIMP_USE_HUNTER
|
#ifdef ASSIMP_USE_HUNTER
|
||||||
# include <utf8/utf8.h>
|
# include <utf8.h>
|
||||||
#else
|
#else
|
||||||
# include <contrib/utf8cpp/source/utf8.h>
|
# include <contrib/utf8cpp/source/utf8.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -61,7 +61,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <assimp/MemoryIOWrapper.h>
|
#include <assimp/MemoryIOWrapper.h>
|
||||||
#include <assimp/irrXMLWrapper.h>
|
#include <assimp/irrXMLWrapper.h>
|
||||||
#ifdef ASSIMP_USE_HUNTER
|
#ifdef ASSIMP_USE_HUNTER
|
||||||
# include <utf8/utf8.h>
|
# include <utf8.h>
|
||||||
#else
|
#else
|
||||||
# include "../contrib/utf8cpp/source/utf8.h"
|
# include "../contrib/utf8cpp/source/utf8.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -899,7 +899,7 @@ ENDIF()
|
||||||
# utf8
|
# utf8
|
||||||
IF(ASSIMP_HUNTER_ENABLED)
|
IF(ASSIMP_HUNTER_ENABLED)
|
||||||
hunter_add_package(utf8)
|
hunter_add_package(utf8)
|
||||||
find_package(utf8 CONFIG REQUIRED)
|
find_package(utf8cpp CONFIG REQUIRED)
|
||||||
ELSE()
|
ELSE()
|
||||||
# utf8 is header-only, so Assimp doesn't need to do anything.
|
# utf8 is header-only, so Assimp doesn't need to do anything.
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
@ -1159,7 +1159,7 @@ IF(ASSIMP_HUNTER_ENABLED)
|
||||||
minizip::minizip
|
minizip::minizip
|
||||||
ZLIB::zlib
|
ZLIB::zlib
|
||||||
RapidJSON::rapidjson
|
RapidJSON::rapidjson
|
||||||
utf8::utf8
|
utf8cpp
|
||||||
zip::zip
|
zip::zip
|
||||||
)
|
)
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|
|
@ -343,7 +343,7 @@ std::string BaseImporter::GetExtension(const std::string &file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ASSIMP_USE_HUNTER
|
#ifdef ASSIMP_USE_HUNTER
|
||||||
#include <utf8/utf8.h>
|
#include <utf8.h>
|
||||||
#else
|
#else
|
||||||
#include "../contrib/utf8cpp/source/utf8.h"
|
#include "../contrib/utf8cpp/source/utf8.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue