Merge pull request #4173 from jdumas/jdumas/ziplib
Do not build ziplib when 3MF exporter is disabled.pull/4187/head
commit
b1c83f437f
|
@ -953,10 +953,12 @@ ELSE()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# zip (https://github.com/kuba--/zip)
|
# zip (https://github.com/kuba--/zip)
|
||||||
IF(ASSIMP_HUNTER_ENABLED)
|
separate_arguments(ASSIMP_EXPORTERS_LIST UNIX_COMMAND ${ASSIMP_EXPORTERS_ENABLED})
|
||||||
|
IF(3MF IN_LIST ASSIMP_EXPORTERS_LIST)
|
||||||
|
IF(ASSIMP_HUNTER_ENABLED)
|
||||||
hunter_add_package(zip)
|
hunter_add_package(zip)
|
||||||
find_package(zip CONFIG REQUIRED)
|
find_package(zip CONFIG REQUIRED)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET( ziplib_SRCS
|
SET( ziplib_SRCS
|
||||||
../contrib/zip/src/miniz.h
|
../contrib/zip/src/miniz.h
|
||||||
../contrib/zip/src/zip.c
|
../contrib/zip/src/zip.c
|
||||||
|
@ -971,6 +973,7 @@ ELSE()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
SOURCE_GROUP( ziplib FILES ${ziplib_SRCS} )
|
SOURCE_GROUP( ziplib FILES ${ziplib_SRCS} )
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# openddlparser
|
# openddlparser
|
||||||
|
@ -1186,10 +1189,12 @@ IF(ASSIMP_HUNTER_ENABLED)
|
||||||
ZLIB::zlib
|
ZLIB::zlib
|
||||||
RapidJSON::rapidjson
|
RapidJSON::rapidjson
|
||||||
utf8cpp
|
utf8cpp
|
||||||
zip::zip
|
|
||||||
pugixml
|
pugixml
|
||||||
stb::stb
|
stb::stb
|
||||||
)
|
)
|
||||||
|
if(TARGET zip::zip)
|
||||||
|
target_link_libraries(assimp PUBLIC zip::zip)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (ASSIMP_BUILD_DRACO)
|
if (ASSIMP_BUILD_DRACO)
|
||||||
target_link_libraries(assimp PUBLIC ${draco_LIBRARIES})
|
target_link_libraries(assimp PUBLIC ${draco_LIBRARIES})
|
||||||
|
|
Loading…
Reference in New Issue