adaptions to support hunter
parent
d75fa2bb4b
commit
b6dde74155
|
@ -229,7 +229,7 @@ INCLUDE_DIRECTORIES( BEFORE
|
||||||
include
|
include
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/include
|
${CMAKE_CURRENT_BINARY_DIR}/include
|
||||||
contrib/pugixml-1.9/src
|
contrib/pugixml/src
|
||||||
)
|
)
|
||||||
|
|
||||||
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules" )
|
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules" )
|
||||||
|
|
|
@ -866,7 +866,12 @@ IF(ASSIMP_HUNTER_ENABLED)
|
||||||
hunter_add_package(pugixml)
|
hunter_add_package(pugixml)
|
||||||
find_package(pugixml CONFIG REQUIRED)
|
find_package(pugixml CONFIG REQUIRED)
|
||||||
ELSE()
|
ELSE()
|
||||||
add_subdirectory(../contrib/pugixml-1.9 )
|
SET( Pugixml_SRCS
|
||||||
|
../contrib/pugixml/src/pugiconfig.hpp
|
||||||
|
../contrib/pugixml/src/pugixml.hpp
|
||||||
|
../contrib/pugixml/src/pugixml.cpp
|
||||||
|
)
|
||||||
|
SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# utf8
|
# utf8
|
||||||
|
@ -1088,6 +1093,7 @@ SET( assimp_src
|
||||||
${openddl_parser_SRCS}
|
${openddl_parser_SRCS}
|
||||||
${open3dgc_SRCS}
|
${open3dgc_SRCS}
|
||||||
${ziplib_SRCS}
|
${ziplib_SRCS}
|
||||||
|
${Pugixml_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}
|
||||||
|
@ -1139,7 +1145,7 @@ IF(ASSIMP_HUNTER_ENABLED)
|
||||||
zip::zip
|
zip::zip
|
||||||
)
|
)
|
||||||
ELSE()
|
ELSE()
|
||||||
TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES} pugixml )
|
TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES} )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if(ASSIMP_ANDROID_JNIIOSYSTEM)
|
if(ASSIMP_ANDROID_JNIIOSYSTEM)
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
|
|
||||||
IF(NOT ASSIMP_HUNTER_ENABLED)
|
|
||||||
add_subdirectory( pugixml-1.9 )
|
|
||||||
ENDIF()
|
|
||||||
|
|
|
@ -217,7 +217,9 @@ add_executable( unit
|
||||||
if(ASSIMP_HUNTER_ENABLED)
|
if(ASSIMP_HUNTER_ENABLED)
|
||||||
hunter_add_package(GTest)
|
hunter_add_package(GTest)
|
||||||
find_package(GTest CONFIG REQUIRED)
|
find_package(GTest CONFIG REQUIRED)
|
||||||
target_link_libraries(unit GTest::gtest_main GTest::gmock)
|
hunter_add_package(pugixml)
|
||||||
|
find_package(pugixml CONFIG REQUIRED)
|
||||||
|
target_link_libraries(unit GTest::gtest_main GTest::gmock pugixml::pugixml)
|
||||||
else()
|
else()
|
||||||
target_sources(unit PUBLIC ../contrib/gtest/src/gtest-all.cc)
|
target_sources(unit PUBLIC ../contrib/gtest/src/gtest-all.cc)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -63,7 +63,7 @@ TARGET_USE_COMMON_OUTPUT_DIRECTORY(assimp_cmd)
|
||||||
|
|
||||||
SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
|
SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES} pugixml )
|
TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES} )
|
||||||
SET_TARGET_PROPERTIES( assimp_cmd PROPERTIES
|
SET_TARGET_PROPERTIES( assimp_cmd PROPERTIES
|
||||||
OUTPUT_NAME assimp
|
OUTPUT_NAME assimp
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue