|
@@ -873,6 +873,7 @@ ELSE()
|
|
../contrib/pugixml/src/pugiconfig.hpp
|
|
../contrib/pugixml/src/pugiconfig.hpp
|
|
../contrib/pugixml/src/pugixml.hpp
|
|
../contrib/pugixml/src/pugixml.hpp
|
|
)
|
|
)
|
|
|
|
+ INCLUDE_DIRECTORIES("../contrib/pugixml/src")
|
|
SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS})
|
|
SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS})
|
|
ENDIF()
|
|
ENDIF()
|
|
|
|
|
|
@@ -1034,8 +1035,6 @@ IF(ASSIMP_HUNTER_ENABLED)
|
|
find_package(RapidJSON CONFIG REQUIRED)
|
|
find_package(RapidJSON CONFIG REQUIRED)
|
|
ELSE()
|
|
ELSE()
|
|
INCLUDE_DIRECTORIES("../contrib/rapidjson/include")
|
|
INCLUDE_DIRECTORIES("../contrib/rapidjson/include")
|
|
- INCLUDE_DIRECTORIES( "../contrib" )
|
|
|
|
- INCLUDE_DIRECTORIES("../contrib/pugixml/src")
|
|
|
|
ADD_DEFINITIONS( -DRAPIDJSON_HAS_STDSTRING=1)
|
|
ADD_DEFINITIONS( -DRAPIDJSON_HAS_STDSTRING=1)
|
|
option( ASSIMP_RAPIDJSON_NO_MEMBER_ITERATOR "Suppress rapidjson warning on MSVC (NOTE: breaks android build)" ON )
|
|
option( ASSIMP_RAPIDJSON_NO_MEMBER_ITERATOR "Suppress rapidjson warning on MSVC (NOTE: breaks android build)" ON )
|
|
if(ASSIMP_RAPIDJSON_NO_MEMBER_ITERATOR)
|
|
if(ASSIMP_RAPIDJSON_NO_MEMBER_ITERATOR)
|
|
@@ -1043,6 +1042,18 @@ ELSE()
|
|
endif()
|
|
endif()
|
|
ENDIF()
|
|
ENDIF()
|
|
|
|
|
|
|
|
+# stb
|
|
|
|
+IF(ASSIMP_HUNTER_ENABLED)
|
|
|
|
+ hunter_add_package(stb)
|
|
|
|
+ find_package(stb CONFIG REQUIRED)
|
|
|
|
+ELSE()
|
|
|
|
+ SET( stb_SRCS
|
|
|
|
+ ../contrib/stb/stb_image.h
|
|
|
|
+ )
|
|
|
|
+ INCLUDE_DIRECTORIES("../contrib")
|
|
|
|
+ SOURCE_GROUP( Contrib\\stb FILES ${stb_SRCS})
|
|
|
|
+ENDIF()
|
|
|
|
+
|
|
# VC2010 fixes
|
|
# VC2010 fixes
|
|
if(MSVC10)
|
|
if(MSVC10)
|
|
option( VC10_STDINT_FIX "Fix for VC10 Compiler regarding pstdint.h redefinition errors" OFF )
|
|
option( VC10_STDINT_FIX "Fix for VC10 Compiler regarding pstdint.h redefinition errors" OFF )
|
|
@@ -1101,6 +1112,7 @@ SET( assimp_src
|
|
${open3dgc_SRCS}
|
|
${open3dgc_SRCS}
|
|
${ziplib_SRCS}
|
|
${ziplib_SRCS}
|
|
${Pugixml_SRCS}
|
|
${Pugixml_SRCS}
|
|
|
|
+ ${stb_SRCS}
|
|
# Necessary to show the headers in the project when using the VC++ generator:
|
|
# Necessary to show the headers in the project when using the VC++ generator:
|
|
|
|
|
|
${PUBLIC_HEADERS}
|
|
${PUBLIC_HEADERS}
|
|
@@ -1158,8 +1170,9 @@ IF(ASSIMP_HUNTER_ENABLED)
|
|
utf8cpp
|
|
utf8cpp
|
|
zip::zip
|
|
zip::zip
|
|
pugixml
|
|
pugixml
|
|
|
|
+ stb::stb
|
|
)
|
|
)
|
|
-
|
|
|
|
|
|
+
|
|
if (ASSIMP_BUILD_DRACO)
|
|
if (ASSIMP_BUILD_DRACO)
|
|
target_link_libraries(assimp PUBLIC ${draco_LIBRARIES})
|
|
target_link_libraries(assimp PUBLIC ${draco_LIBRARIES})
|
|
endif()
|
|
endif()
|